Kodi Community Forum
[PATCH] FFmpeg git-737eb59 merged libavcore into libavutil; lib/DllAvCore.h fails - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [PATCH] FFmpeg git-737eb59 merged libavcore into libavutil; lib/DllAvCore.h fails (/showthread.php?tid=95066)



[PATCH] FFmpeg git-737eb59 merged libavcore into libavutil; lib/DllAvCore.h fails - Haxar - 2011-02-23

http://git.ffmpeg.org/?p=ffmpeg.git;a=commit;h=737eb5976f6a37703923ce3c3d5e6ca8eeabb43a

This is simply a workaround to compile XBMC with the latest FFmpeg lib changes.

Code:
diff --git a/lib/DllAvCore.h b/lib/DllAvCore.h
index d332052..9a5d810 100644
--- a/lib/DllAvCore.h
+++ b/lib/DllAvCore.h
@@ -54,8 +54,13 @@ extern "C" {
#ifdef USE_EXTERNAL_FFMPEG

#ifndef LIBAVCORE_VERSION_INT
+// API added on: 2011-02-15
+  #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(50,38,0)
+    #define LIBAVCORE_VERSION_INT AV_VERSION_INT(0,16,1)
+  #else
// API added on: 2010-07-21
-#define LIBAVCORE_VERSION_INT 0
+    #define LIBAVCORE_VERSION_INT 0
+  #endif
#endif

#if LIBAVCORE_VERSION_INT < AV_VERSION_INT(0,10,0)

EDIT: http://trac.xbmc.org/ticket/11259