[FFmpeg-cvslog] r25491 - in trunk/libavformat: avformat.h utils.c

aurel subversion
Fri Oct 15 20:25:01 CEST 2010


Author: aurel
Date: Fri Oct 15 20:25:01 2010
New Revision: 25491

Log:
add FF_API_SYMVER define to disable symver compatibility functions

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/utils.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	Fri Oct 15 16:44:18 2010	(r25490)
+++ trunk/libavformat/avformat.h	Fri Oct 15 20:25:01 2010	(r25491)
@@ -81,6 +81,9 @@
 #ifndef FF_API_FIRST_FORMAT
 #define FF_API_FIRST_FORMAT            (LIBAVFORMAT_VERSION_MAJOR < 53)
 #endif
+#ifndef FF_API_SYMVER
+#define FF_API_SYMVER                  (LIBAVFORMAT_VERSION_MAJOR < 53)
+#endif
 
 /**
  * I return the LIBAVFORMAT_VERSION_INT constant.  You got

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Fri Oct 15 16:44:18 2010	(r25490)
+++ trunk/libavformat/utils.c	Fri Oct 15 20:25:01 2010	(r25491)
@@ -290,7 +290,7 @@ AVInputFormat *av_find_input_format(cons
     return NULL;
 }
 
-#if LIBAVFORMAT_VERSION_MAJOR < 53 && CONFIG_SHARED && HAVE_SYMVER
+#if FF_API_SYMVER && CONFIG_SHARED && HAVE_SYMVER
 FF_SYMVER(void, av_destruct_packet_nofree, (AVPacket *pkt), "LIBAVFORMAT_52")
 {
     av_destruct_packet_nofree(pkt);



More information about the ffmpeg-cvslog mailing list