[vlc-commits] Avcodec: set the dsp_mask for NEON too

Jean-Baptiste Kempf git at videolan.org
Mon Oct 1 16:12:05 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct  1 16:11:43 2012 +0200| [3d7a65c1ba5e79044c71c2b134c5a201ec83b5f2] | committer: Jean-Baptiste Kempf

Avcodec: set the dsp_mask for NEON too

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

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

diff --git a/modules/codec/avcodec/cpu.c b/modules/codec/avcodec/cpu.c
index 9035a59..91dd898 100644
--- a/modules/codec/avcodec/cpu.c
+++ b/modules/codec/avcodec/cpu.c
@@ -82,5 +82,10 @@ unsigned GetVlcDspMask( void )
         mask |= AV_CPU_FLAG_ALTIVEC;
 #endif
 
+#if defined ( __arm__)
+    if( !vlc_CPU_ARM_NEON() )
+        mask |= AV_CPU_FLAG_NEON;
+#endif
+
     return mask;
 }



More information about the vlc-commits mailing list