From: Alexander Strange Date: Tue, 24 Jun 2008 23:51:17 +0000 (+0000) Subject: Define mm_flags/support to be 0 on architectures where they don't exist. X-Git-Tag: v0.5~3961 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f67a10cd0c7fd9589e7fadfb8daeec8faba4cd39;p=platform%2Fupstream%2Flibav.git Define mm_flags/support to be 0 on architectures where they don't exist. Make sure we don't try to set them if that's the case. This lets dct-test and fft-test build with --disable-mmx on x86, but not yet on ARM. Originally committed as revision 13957 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index 5699d8981..e96c895c2 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -531,7 +531,10 @@ int main(int argc, char **argv) init_fdct(); idct_mmx_init(); + +#ifndef mm_flags mm_flags = mm_support(); +#endif for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; for(i=0;i