From 46394d39e3551443f560f4050c74e380edcf20f9 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 27 Apr 2011 13:57:39 -0700 Subject: [PATCH] In png decoder, only call png_init_mmx if HAVE_MMX is defined. --- libavcodec/pngdec.c | 2 ++ 1 file changed, 2 insertions(+) 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;