changeset 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 ac299df18642
children 74295564eed0
files asfdec.c flic.c flvenc.c rtpdec_qdm2.c rtpdec_svq3.c tty.c
diffstat 6 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Fri Sep 24 18:04:21 2010 +0000
+++ b/asfdec.c	Sat Sep 25 23:27:16 2010 +0000
@@ -639,7 +639,7 @@
                 av_reduce(&st->sample_aspect_ratio.num,
                           &st->sample_aspect_ratio.den,
                           dar[i].num, dar[i].den, INT_MAX);
-            } else if ((dar[0].num > 0) && (dar[0].den > 0) && (st->codec->codec_type==CODEC_TYPE_VIDEO)) // Use ASF container value if the stream doesn't AR set.
+            } else if ((dar[0].num > 0) && (dar[0].den > 0) && (st->codec->codec_type==AVMEDIA_TYPE_VIDEO)) // Use ASF container value if the stream doesn't AR set.
                 av_reduce(&st->sample_aspect_ratio.num,
                           &st->sample_aspect_ratio.den,
                           dar[0].num, dar[0].den, INT_MAX);
--- a/flic.c	Fri Sep 24 18:04:21 2010 +0000
+++ b/flic.c	Sat Sep 25 23:27:16 2010 +0000
@@ -152,7 +152,7 @@
 
         /* all audio frames are the same size, so use the size of the first chunk for block_align */
         ast->codec->block_align = AV_RL32(&preamble[0]);
-        ast->codec->codec_type = CODEC_TYPE_AUDIO;
+        ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
         ast->codec->codec_id = CODEC_ID_PCM_U8;
         ast->codec->codec_tag = 0;
         ast->codec->sample_rate = FLIC_TFTD_SAMPLE_RATE;
--- 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;
     }
--- a/rtpdec_qdm2.c	Fri Sep 24 18:04:21 2010 +0000
+++ b/rtpdec_qdm2.c	Sat Sep 25 23:27:16 2010 +0000
@@ -307,7 +307,7 @@
 
 RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
     "X-QDM",
-    CODEC_TYPE_AUDIO,
+    AVMEDIA_TYPE_AUDIO,
     CODEC_ID_NONE,
     NULL,
     qdm2_extradata_new,
--- a/rtpdec_svq3.c	Fri Sep 24 18:04:21 2010 +0000
+++ b/rtpdec_svq3.c	Sat Sep 25 23:27:16 2010 +0000
@@ -129,7 +129,7 @@
 
 RTPDynamicProtocolHandler ff_svq3_dynamic_handler = {
     "X-SV3V-ES",
-    CODEC_TYPE_VIDEO,
+    AVMEDIA_TYPE_VIDEO,
     CODEC_ID_NONE,          // see if (config_packet) above
     NULL,                   // parse sdp line
     svq3_extradata_new,
--- a/tty.c	Fri Sep 24 18:04:21 2010 +0000
+++ b/tty.c	Sat Sep 25 23:27:16 2010 +0000
@@ -75,7 +75,7 @@
     if (!st)
         return AVERROR(ENOMEM);
     st->codec->codec_tag   = 0;
-    st->codec->codec_type  = CODEC_TYPE_VIDEO;
+    st->codec->codec_type  = AVMEDIA_TYPE_VIDEO;
     st->codec->codec_id    = CODEC_ID_ANSI;
     if (ap->width)  st->codec->width  = ap->width;
     if (ap->height) st->codec->height = ap->height;