png: add missing #if HAVE_SSSE3 around function pointer assignment.
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 29 Jan 2012 20:31:59 +0000 (12:31 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 29 Jan 2012 20:31:59 +0000 (12:31 -0800)
libavcodec/x86/pngdsp-init.c

index 6545236..dfae9b3 100644 (file)
@@ -130,6 +130,6 @@ void ff_pngdsp_init_x86(PNGDSPContext *dsp)
         dsp->add_bytes_l2         = add_bytes_l2_mmx;
     if (flags & AV_CPU_FLAG_MMX2)
         dsp->add_paeth_prediction = add_png_paeth_prediction_mmx2;
-    if (flags & AV_CPU_FLAG_SSSE3)
+    if (HAVE_SSSE3 && flags & AV_CPU_FLAG_SSSE3)
         dsp->add_paeth_prediction = add_png_paeth_prediction_ssse3;
 }