[SCM] libav/experimental: add FF_API_SYMVER define to disable symver compatibility functions
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:17:45 UTC 2013
The following commit has been merged in the experimental branch:
commit 13728334e8ac3dde15ef23a6a4aa935b3c92fa64
Author: Aurelien Jacobs <aurel at gnuage.org>
Date: Fri Oct 15 18:25:01 2010 +0000
add FF_API_SYMVER define to disable symver compatibility functions
Originally committed as revision 25491 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 0ab1156..2b7d166 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -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
diff --git a/libavformat/utils.c b/libavformat/utils.c
index be475cc..289b91c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -290,7 +290,7 @@ AVInputFormat *av_find_input_format(const char *short_name)
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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list