[FFmpeg-cvslog] png: add missing #if HAVE_SSSE3 around function pointer assignment.

Ronald S. Bultje git at videolan.org
Mon Jan 30 05:29:43 CET 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jan 29 12:31:59 2012 -0800| [20a7d3178f2370ebd1f548c144bc90d1e1bcd81a] | committer: Ronald S. Bultje

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20a7d3178f2370ebd1f548c144bc90d1e1bcd81a
---

 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 ffmpeg-cvslog mailing list