]> git.sesse.net Git - ffmpeg/commitdiff
Fix linking if MMX is disabled.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 27 Jun 2010 23:25:04 +0000 (23:25 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 27 Jun 2010 23:25:04 +0000 (23:25 +0000)
Originally committed as revision 23839 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264pred.c
libavcodec/vp8dsp.c

index 3353a9a2c0e00eab508b900c19c47d2a7a960437..eff7d890557ce7edb818b554e867a95ec56e05f2 100644 (file)
@@ -1299,5 +1299,5 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id){
     h->pred16x16_add[ HOR_PRED8x8]= pred16x16_horizontal_add_c;
 
     if (ARCH_ARM) ff_h264_pred_init_arm(h, codec_id);
-    if (ARCH_X86) ff_h264_pred_init_x86(h, codec_id);
+    if (HAVE_MMX) ff_h264_pred_init_x86(h, codec_id);
 }
index 4fb602522f930801ac8b027a5d933d763c664db3..59cf4d6e1682853614600a6477def5e6c4cb1f99 100644 (file)
@@ -452,6 +452,6 @@ av_cold void ff_vp8dsp_init(VP8DSPContext *dsp)
     VP8_BILINEAR_MC_FUNC(1, 8);
     VP8_BILINEAR_MC_FUNC(2, 4);
 
-    if (ARCH_X86)
+    if (HAVE_MMX)
         ff_vp8dsp_init_x86(dsp);
 }