summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-10-15 13:09:35 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-10-15 13:09:35 +0000
commitade800c5b7ffb58d5f957b9344f24bdad98a4268 (patch)
tree1f7cbf8e58184b61978cd3b8d2681fc9b878e430 /libavformat
parentca51d86c96675aabf3f05c9052593b4bc8eb927f (diff)
properly check for FF_API_URL_CLASS instead of LIBAVFORMAT_VERSION_MAJOR
Originally committed as revision 25484 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtmpproto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index aca1fd3272..abe86759ad 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -38,10 +38,10 @@
#include "rtmppkt.h"
/* we can't use av_log() with URLContext yet... */
-#if LIBAVFORMAT_VERSION_MAJOR < 53
-#define LOG_CONTEXT NULL
-#else
+#if FF_API_URL_CLASS
#define LOG_CONTEXT s
+#else
+#define LOG_CONTEXT NULL
#endif
//#define DEBUG