From b9f9e59afc4e32a326ad6b117166f0c82fd1cbac Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 25 Sep 2010 23:27:16 +0000 Subject: Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the corresponding AVMEDIA_TYPE_* symbols. Originally committed as revision 25201 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/flvenc.c') diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 29b7b1d1ef..e138292109 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -337,7 +337,7 @@ static int flv_write_trailer(AVFormatContext *s) /* Add EOS tag */ for (i = 0; i < s->nb_streams; i++) { AVCodecContext *enc = s->streams[i]->codec; - if (enc->codec_type == CODEC_TYPE_VIDEO && + if (enc->codec_type == AVMEDIA_TYPE_VIDEO && enc->codec_id == CODEC_ID_H264) { put_avc_eos_tag(pb, flv->last_video_ts); } @@ -405,7 +405,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) } ts = pkt->dts + flv->delay; // add delay to force positive dts - if (enc->codec_type == CODEC_TYPE_VIDEO) { + if (enc->codec_type == AVMEDIA_TYPE_VIDEO) { if (flv->last_video_ts < ts) flv->last_video_ts = ts; } -- cgit v1.2.3