diff utils.c @ 8752:7fd1422a8703 libavcodec

Drop the deprecated function register_avcodec() at the next major version bump.
author stefano
date Fri, 06 Feb 2009 23:54:50 +0000
parents 2528b6a2b5d3
children 153d7e5d5a5b
line wrap: on
line diff
--- a/utils.c	Fri Feb 06 23:50:54 2009 +0000
+++ b/utils.c	Fri Feb 06 23:54:50 2009 +0000
@@ -98,10 +98,12 @@
     codec->next = NULL;
 }
 
+#if LIBAVCODEC_VERSION_MAJOR < 53
 void register_avcodec(AVCodec *codec)
 {
     avcodec_register(codec);
 }
+#endif
 
 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
     s->coded_width = width;