diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-04-27 13:57:39 -0700 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-04-27 13:59:30 -0700 |
commit | 46394d39e3551443f560f4050c74e380edcf20f9 (patch) | |
tree | d6c0dcc6e6cb0e5685329562396a5c2af879ebb9 | |
parent | 624a7e005cc65b1e86531aa1ecfa7bea14e8bc7d (diff) | |
download | ffmpeg-46394d39e3551443f560f4050c74e380edcf20f9.tar.gz |
In png decoder, only call png_init_mmx if HAVE_MMX is defined.
-rw-r--r-- | libavcodec/pngdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 3b31109671..311109b4c3 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -624,7 +624,9 @@ static av_cold int png_dec_init(AVCodecContext *avctx) avcodec_get_frame_defaults(&s->picture1); avcodec_get_frame_defaults(&s->picture2); +#ifdef HAVE_MMX ff_png_init_mmx(s); +#endif if (!s->add_paeth_prediction) s->add_paeth_prediction = add_paeth_prediction_c; |