[libav-commits] png: add missing #if HAVE_SSSE3 around function pointer assignment.

Ronald S. Bultje git at libav.org
Sun Jan 29 21:40:48 CET 2012


Module: libav
Branch: master
Commit: 20a7d3178f2370ebd1f548c144bc90d1e1bcd81a

Author:    Ronald S. Bultje <rsbultje at gmail.com>
Committer: Ronald S. Bultje <rsbultje at gmail.com>
Date:      Sun Jan 29 12:31:59 2012 -0800

png: add missing #if HAVE_SSSE3 around function pointer assignment.

---

 libavcodec/x86/pngdsp-init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/x86/pngdsp-init.c b/libavcodec/x86/pngdsp-init.c
index 6545236..dfae9b3 100644
--- a/libavcodec/x86/pngdsp-init.c
+++ b/libavcodec/x86/pngdsp-init.c
@@ -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;
 }



More information about the libav-commits mailing list