In png decoder, only call png_init_mmx if HAVE_MMX is defined.
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 27 Apr 2011 20:57:39 +0000 (13:57 -0700)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 27 Apr 2011 20:59:30 +0000 (13:59 -0700)
libavcodec/pngdec.c

index 3b31109..311109b 100644 (file)
@@ -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;