vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Tue Mar 12 14:06:46 2013 +0100| [b7786ff2e9ae5f6421f4a251fcfd1a4005662a0f] | committer: Jean-Baptiste Kempf
Avcodec: create replacements for older versions of lavc Methods avcodec_alloc_context3, avcodec_open2 and error_recognition member > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7786ff2e9ae5f6421f4a251fcfd1a4005662a0f --- modules/codec/avcodec/avcommon_compat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/codec/avcodec/avcommon_compat.h b/modules/codec/avcodec/avcommon_compat.h index b094223..9cf651e 100644 --- a/modules/codec/avcodec/avcommon_compat.h +++ b/modules/codec/avcodec/avcommon_compat.h @@ -471,6 +471,12 @@ enum { #endif /* LIBAVCODEC_VERSION < 54.25 */ +#if LIBAVCODEC_VERSION_MAJOR < 54 +# define avcodec_alloc_context3(a) avcodec_alloc_context() +# define avcodec_open2(a, b, c) avcodec_open(a, b) +# define err_recognition error_recognition +#endif + #endif /* HAVE_LIBAVCODEC_AVCODEC_H */ #ifdef HAVE_LIBAVUTIL_AVUTIL_H _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
