diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-29 12:31:59 -0800 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-29 12:31:59 -0800 |
commit | 20a7d3178f2370ebd1f548c144bc90d1e1bcd81a (patch) | |
tree | ff91a7b72814f076b49e2cbf2ba751b17e44ac0d | |
parent | 331e7c4cb34eb77451fbf84c604d717ed49abf15 (diff) | |
download | ffmpeg-20a7d3178f2370ebd1f548c144bc90d1e1bcd81a.tar.gz |
png: add missing #if HAVE_SSSE3 around function pointer assignment.
-rw-r--r-- | 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 6545236d00..dfae9b347a 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; } |