fixing normal mmx idct
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Aug 2002 11:58:02 +0000 (11:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Aug 2002 11:58:02 +0000 (11:58 +0000)
Originally committed as revision 835 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dsputil.c

index c832939..d65bfc3 100644 (file)
@@ -1294,11 +1294,12 @@ void dsputil_init(void)
         ff_idct_put = simple_idct_put;
         ff_idct_add = simple_idct_add;
         use_permuted_idct=0;
-    } else {
+    }
+#endif
+    if(ff_idct != NULL) {
         ff_idct_put = gen_idct_put;
         ff_idct_add = gen_idct_add;
     }
-#endif
 
     if(use_permuted_idct)
 #ifdef SIMPLE_IDCT