[FFmpeg-cvslog] r17027 - in trunk/libavcodec: allcodecs.c avcodec.h

stefano subversion
Sat Feb 7 00:50:54 CET 2009


Author: stefano
Date: Sat Feb  7 00:50:54 2009
New Revision: 17027

Log:
Replace the calls to the deprecated function register_avcodec() with
corresponding calls to avcodec_register().

Modified:
   trunk/libavcodec/allcodecs.c
   trunk/libavcodec/avcodec.h

Modified: trunk/libavcodec/allcodecs.c
==============================================================================
--- trunk/libavcodec/allcodecs.c	Sat Feb  7 00:46:15 2009	(r17026)
+++ trunk/libavcodec/allcodecs.c	Sat Feb  7 00:50:54 2009	(r17027)
@@ -28,10 +28,10 @@
 
 #define REGISTER_ENCODER(X,x) { \
           extern AVCodec x##_encoder; \
-          if(CONFIG_##X##_ENCODER)  register_avcodec(&x##_encoder); }
+          if(CONFIG_##X##_ENCODER)  avcodec_register(&x##_encoder); }
 #define REGISTER_DECODER(X,x) { \
           extern AVCodec x##_decoder; \
-          if(CONFIG_##X##_DECODER)  register_avcodec(&x##_decoder); }
+          if(CONFIG_##X##_DECODER)  avcodec_register(&x##_decoder); }
 #define REGISTER_ENCDEC(X,x)  REGISTER_ENCODER(X,x); REGISTER_DECODER(X,x)
 
 #define REGISTER_PARSER(X,x) { \

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	Sat Feb  7 00:46:15 2009	(r17026)
+++ trunk/libavcodec/avcodec.h	Sat Feb  7 00:50:54 2009	(r17027)
@@ -2879,7 +2879,7 @@ int avcodec_close(AVCodecContext *avctx)
  * which formats you want to support, by using the individual registration
  * functions.
  *
- * @see register_avcodec
+ * @see avcodec_register
  * @see av_register_codec_parser
  * @see av_register_bitstream_filter
  */




More information about the ffmpeg-cvslog mailing list