diff avformat.h @ 6392:daca8bebdd88 libavformat

add FF_API_URL_CLASS define to enable usage of URLContext as a AVClass
author aurel
date Thu, 19 Aug 2010 16:49:08 +0000
parents 8ba781dd8b2b
children 896acb967d32
line wrap: on
line diff
--- a/avformat.h	Thu Aug 19 14:54:37 2010 +0000
+++ b/avformat.h	Thu Aug 19 16:49:08 2010 +0000
@@ -45,6 +45,9 @@
 #ifndef FF_API_OLD_METADATA
 #define FF_API_OLD_METADATA  (LIBAVFORMAT_VERSION_MAJOR < 53)
 #endif
+#ifndef FF_API_URL_CLASS
+#define FF_API_URL_CLASS     (LIBAVFORMAT_VERSION_MAJOR >= 53)
+#endif
 
 /**
  * I return the LIBAVFORMAT_VERSION_INT constant.  You got