[vlc-commits] Avformat: set the dsp mask too

Jean-Baptiste Kempf git at videolan.org
Tue Oct 9 17:13:37 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct  9 16:33:36 2012 +0200| [aa0cc2d55262b5645804f748c1a29307dae5725e] | committer: Jean-Baptiste Kempf

Avformat: set the dsp mask too

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa0cc2d55262b5645804f748c1a29307dae5725e
---

 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 b3cac1c..77d3f18 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -29,6 +29,8 @@
 #include <vlc_configuration.h>
 #include <vlc_variables.h>
 
+#include <limits.h>
+
 unsigned GetVlcDspMask( void );
 
 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
@@ -36,6 +38,7 @@ unsigned GetVlcDspMask( void );
 static inline void vlc_init_avformat(void)
 {
     vlc_avcodec_lock();
+    av_set_cpu_flags_mask( INT_MAX & ~GetVlcDspMask() );
 
     av_register_all();
 



More information about the vlc-commits mailing list