[FFmpeg-cvslog] r25201 - in trunk: libavcodec/ansi.c libavcodec/libxavs.c libavcodec/pictordec.c libavcodec/ra144enc.c libavfilter/vf_pad.c libavformat/asfdec.c libavformat/flic.c libavformat/flvenc.c libavformat/...

stefano subversion
Sun Sep 26 01:27:16 CEST 2010


Author: stefano
Date: Sun Sep 26 01:27:16 2010
New Revision: 25201

Log:
Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the
corresponding AVMEDIA_TYPE_* symbols.

Modified:
   trunk/libavcodec/ansi.c
   trunk/libavcodec/libxavs.c
   trunk/libavcodec/pictordec.c
   trunk/libavcodec/ra144enc.c
   trunk/libavfilter/vf_pad.c
   trunk/libavformat/asfdec.c
   trunk/libavformat/flic.c
   trunk/libavformat/flvenc.c
   trunk/libavformat/rtpdec_qdm2.c
   trunk/libavformat/rtpdec_svq3.c
   trunk/libavformat/tty.c

Modified: trunk/libavcodec/ansi.c
==============================================================================
--- trunk/libavcodec/ansi.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavcodec/ansi.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -424,7 +424,7 @@ static av_cold int decode_close(AVCodecC
 
 AVCodec ansi_decoder = {
     .name           = "ansi",
-    .type           = CODEC_TYPE_VIDEO,
+    .type           = AVMEDIA_TYPE_VIDEO,
     .id             = CODEC_ID_ANSI,
     .priv_data_size = sizeof(AnsiContext),
     .init           = decode_init,

Modified: trunk/libavcodec/libxavs.c
==============================================================================
--- trunk/libavcodec/libxavs.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavcodec/libxavs.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -338,7 +338,7 @@ static av_cold int XAVS_init(AVCodecCont
 
 AVCodec libxavs_encoder = {
     .name           = "libxavs",
-    .type           = CODEC_TYPE_VIDEO,
+    .type           = AVMEDIA_TYPE_VIDEO,
     .id             = CODEC_ID_CAVS,
     .priv_data_size = sizeof(XavsContext),
     .init           = XAVS_init,

Modified: trunk/libavcodec/pictordec.c
==============================================================================
--- trunk/libavcodec/pictordec.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavcodec/pictordec.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -239,7 +239,7 @@ static av_cold int decode_end(AVCodecCon
 
 AVCodec pictor_decoder = {
     "pictor",
-    CODEC_TYPE_VIDEO,
+    AVMEDIA_TYPE_VIDEO,
     CODEC_ID_PICTOR,
     sizeof(PicContext),
     NULL,

Modified: trunk/libavcodec/ra144enc.c
==============================================================================
--- trunk/libavcodec/ra144enc.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavcodec/ra144enc.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -502,7 +502,7 @@ static int ra144_encode_frame(AVCodecCon
 AVCodec ra_144_encoder =
 {
     "real_144",
-    CODEC_TYPE_AUDIO,
+    AVMEDIA_TYPE_AUDIO,
     CODEC_ID_RA_144,
     sizeof(RA144Context),
     ra144_encode_init,

Modified: trunk/libavfilter/vf_pad.c
==============================================================================
--- trunk/libavfilter/vf_pad.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavfilter/vf_pad.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -456,7 +456,7 @@ AVFilter avfilter_vsrc_color = {
     .inputs    = (AVFilterPad[]) {{ .name = NULL}},
 
     .outputs   = (AVFilterPad[]) {{ .name            = "default",
-                                    .type            = CODEC_TYPE_VIDEO,
+                                    .type            = AVMEDIA_TYPE_VIDEO,
                                     .request_frame   = color_request_frame,
                                     .config_props    = color_config_props },
                                   { .name = NULL}},

Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavformat/asfdec.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -639,7 +639,7 @@ static int asf_read_header(AVFormatConte
                 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);

Modified: trunk/libavformat/flic.c
==============================================================================
--- trunk/libavformat/flic.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavformat/flic.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -152,7 +152,7 @@ static int flic_read_header(AVFormatCont
 
         /* 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;

Modified: trunk/libavformat/flvenc.c
==============================================================================
--- trunk/libavformat/flvenc.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavformat/flvenc.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -337,7 +337,7 @@ static int flv_write_trailer(AVFormatCon
     /* 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(AVFormatCont
     }
 
     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;
     }

Modified: trunk/libavformat/rtpdec_qdm2.c
==============================================================================
--- trunk/libavformat/rtpdec_qdm2.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavformat/rtpdec_qdm2.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -307,7 +307,7 @@ static void qdm2_extradata_free(PayloadC
 
 RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
     "X-QDM",
-    CODEC_TYPE_AUDIO,
+    AVMEDIA_TYPE_AUDIO,
     CODEC_ID_NONE,
     NULL,
     qdm2_extradata_new,

Modified: trunk/libavformat/rtpdec_svq3.c
==============================================================================
--- trunk/libavformat/rtpdec_svq3.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavformat/rtpdec_svq3.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -129,7 +129,7 @@ static void svq3_extradata_free(PayloadC
 
 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,

Modified: trunk/libavformat/tty.c
==============================================================================
--- trunk/libavformat/tty.c	Sat Sep 25 19:13:29 2010	(r25200)
+++ trunk/libavformat/tty.c	Sun Sep 26 01:27:16 2010	(r25201)
@@ -75,7 +75,7 @@ static int read_header(AVFormatContext *
     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;



More information about the ffmpeg-cvslog mailing list