[vlc-commits] Fix compilation on older versions of libavutil
Jean-Baptiste Kempf
git at videolan.org
Tue Oct 9 17:23:57 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 9 17:21:21 2012 +0200| [8bf315eb70774deb8597973cb229402f901b496e] | committer: Jean-Baptiste Kempf
Fix compilation on older versions of libavutil
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8bf315eb70774deb8597973cb229402f901b496e
---
modules/codec/avcodec/avcommon.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/avcodec/avcommon.h b/modules/codec/avcodec/avcommon.h
index 77d3f18..14b709b 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -38,7 +38,10 @@ unsigned GetVlcDspMask( void );
static inline void vlc_init_avformat(void)
{
vlc_avcodec_lock();
+
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 51, 25, 0 )
av_set_cpu_flags_mask( INT_MAX & ~GetVlcDspMask() );
+#endif
av_register_all();
More information about the vlc-commits
mailing list