Browse Source

iwmmxt ffmpeg code does not implement dct_unquantize_h263_inter_iwmmxt, but
armv5t does - use the armv5t function rather than default c code.
patch by Tim Chick chick at computergeek freeserve co uk

Originally committed as revision 8487 to svn://svn.ffmpeg.org/ffmpeg/trunk

Tim Chick 18 years ago
parent
commit
56cc42664a
1 changed files with 7 additions and 2 deletions
  1. 7 2
      libavcodec/armv4l/mpegvideo_arm.c

+ 7 - 2
libavcodec/armv4l/mpegvideo_arm.c

@@ -28,9 +28,14 @@ extern void MPV_common_init_armv5te(MpegEncContext *s);
 
 void MPV_common_init_armv4l(MpegEncContext *s)
 {
+    /* IWMMXT support is a superset of armv5te, so
+     * allow optimised functions for armv5te unless
+     * a better iwmmxt function exists
+     */
+#ifdef HAVE_ARMV5TE
+    MPV_common_init_armv5te(s);
+#endif
 #ifdef HAVE_IWMMXT
     MPV_common_init_iwmmxt(s);
-#elif defined(HAVE_ARMV5TE)
-    MPV_common_init_armv5te(s);
 #endif
 }