x86/h264dsp_init: put a HAVE_YASM back
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 9 Sep 2012 15:21:02 +0000 (17:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 9 Sep 2012 15:21:02 +0000 (17:21 +0200)
Should fix compilation on open solaris

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/x86/h264dsp_init.c

index 7ada495..bb48867 100644 (file)
@@ -210,6 +210,7 @@ H264_BIWEIGHT_10_SSE(4,  10)
 void ff_h264dsp_init_x86(H264DSPContext *c, const int bit_depth,
                          const int chroma_format_idc)
 {
+#if HAVE_YASM
     int mm_flags = av_get_cpu_flags();
 
     if (chroma_format_idc == 1 && EXTERNAL_MMXEXT(mm_flags))
@@ -371,4 +372,5 @@ void ff_h264dsp_init_x86(H264DSPContext *c, const int bit_depth,
             }
         }
     }
+#endif
 }