mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
record, streamts: use modern AV_CODEC_ID enums
this allows to build with current ffmpeg
This commit is contained in:
committed by
svenhoefer
parent
4d93168cf6
commit
5bf115db80
@@ -2172,7 +2172,7 @@ void CStreamRec::run()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
AVCodecContext *codec = ifcx->streams[pkt.stream_index]->codec;
|
AVCodecContext *codec = ifcx->streams[pkt.stream_index]->codec;
|
||||||
if (bsfc && codec->codec_id == CODEC_ID_H264) {
|
if (bsfc && codec->codec_id == AV_CODEC_ID_H264) {
|
||||||
AVPacket newpkt = pkt;
|
AVPacket newpkt = pkt;
|
||||||
|
|
||||||
if (av_bitstream_filter_filter(bsfc, codec, NULL, &newpkt.data, &newpkt.size, pkt.data, pkt.size, pkt.flags & AV_PKT_FLAG_KEY) >= 0) {
|
if (av_bitstream_filter_filter(bsfc, codec, NULL, &newpkt.data, &newpkt.size, pkt.data, pkt.size, pkt.flags & AV_PKT_FLAG_KEY) >= 0) {
|
||||||
|
@@ -896,7 +896,7 @@ void CStreamStream::run()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
AVCodecContext *codec = ifcx->streams[pkt.stream_index]->codec;
|
AVCodecContext *codec = ifcx->streams[pkt.stream_index]->codec;
|
||||||
if (bsfc && codec->codec_id == CODEC_ID_H264 ) {
|
if (bsfc && codec->codec_id == AV_CODEC_ID_H264 ) {
|
||||||
AVPacket newpkt = pkt;
|
AVPacket newpkt = pkt;
|
||||||
|
|
||||||
if (av_bitstream_filter_filter(bsfc, codec, NULL, &newpkt.data, &newpkt.size, pkt.data, pkt.size, pkt.flags & AV_PKT_FLAG_KEY) >= 0) {
|
if (av_bitstream_filter_filter(bsfc, codec, NULL, &newpkt.data, &newpkt.size, pkt.data, pkt.size, pkt.flags & AV_PKT_FLAG_KEY) >= 0) {
|
||||||
|
Reference in New Issue
Block a user