record, streamts: use modern AV_CODEC_ID enums

this allows to build with current ffmpeg


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5f33ee96fd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2016-10-22 12:02:10 +02:00
parent 4fb9a66f39
commit 6abba22cdc
2 changed files with 2 additions and 2 deletions

View File

@@ -2171,7 +2171,7 @@ void CStreamRec::run()
continue;
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;
if (av_bitstream_filter_filter(bsfc, codec, NULL, &newpkt.data, &newpkt.size, pkt.data, pkt.size, pkt.flags & AV_PKT_FLAG_KEY) >= 0) {