vlc | branch: master | Jean-Baptiste Kempf <j...@videolan.org> | Thu Oct  4 
23:56:36 2012 +0200| [c311b5fa97b2cc32892a32b4fe578bb70884cc83] | committer: 
Jean-Baptiste Kempf

Avcodec: set the cpu flags/mask in modern version of libavutil

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

 modules/codec/avcodec/avcodec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 2176b74..0349d31 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -329,6 +329,9 @@ static int OpenDecoder( vlc_object_t *p_this )
     p_context->debug = var_InheritInteger( p_dec, "avcodec-debug" );
     p_context->opaque = (void *)p_this;
     p_context->dsp_mask = GetVlcDspMask(); /* set CPU capabilities */
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( 51, 25, 0 )
+    av_set_cpu_flags_mask( INT_MAX & ~p_context->dsp_mask );
+#endif
 
     p_dec->b_need_packetized = true;
     switch( i_cat )

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to