diff flvenc.c @ 6484:29e95ae56fa9 libavformat

Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the corresponding AVMEDIA_TYPE_* symbols.
author stefano
date Sat, 25 Sep 2010 23:27:16 +0000
parents ae4ea19af762
children
line wrap: on
line diff
--- a/flvenc.c	Fri Sep 24 18:04:21 2010 +0000
+++ b/flvenc.c	Sat Sep 25 23:27:16 2010 +0000
@@ -337,7 +337,7 @@
     /* 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 @@
     }
 
     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;
     }