summaryrefslogtreecommitdiff
path: root/libavformat/flvenc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-25 23:27:16 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-25 23:27:16 +0000
commitb9f9e59afc4e32a326ad6b117166f0c82fd1cbac (patch)
tree9cb2d814bc0522348ade285eab2cae4e907275ec /libavformat/flvenc.c
parent2c1da681b8a75548b407c19639effeff2ffc2ea3 (diff)
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
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r--libavformat/flvenc.c4
1 files changed, 2 insertions, 2 deletions
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;
}