2011-02-23, 04:46
http://git.ffmpeg.org/?p=ffmpeg.git;a=co...a8eeabb43a
This is simply a workaround to compile XBMC with the latest FFmpeg lib changes.
EDIT: http://trac.xbmc.org/ticket/11259
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