IWMMXT configure support + runtime selection patch by (Gildas Bazin, gbazin : altern...
[ffmpeg.git] / libavcodec / armv4l / mpegvideo_iwmmxt.c
index 0f4c99e..9724de8 100644 (file)
@@ -90,6 +90,8 @@ static void dct_unquantize_h263_inter_iwmmxt(MpegEncContext *s,
 
 void MPV_common_init_iwmmxt(MpegEncContext *s)
 {
+    if (!(mm_flags & MM_IWMMXT)) return;
+
     s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_iwmmxt;
 #if 0
     s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_iwmmxt;