[FFmpeg-cvslog] In png decoder, only call png_init_mmx if HAVE_MMX is defined.
Baptiste Coudurier
git at videolan.org
Wed Apr 27 22:59:40 CEST 2011
ffmpeg | branch: master | Baptiste Coudurier <baptiste.coudurier at gmail.com> | Wed Apr 27 13:57:39 2011 -0700| [46394d39e3551443f560f4050c74e380edcf20f9] | committer: Baptiste Coudurier
In png decoder, only call png_init_mmx if HAVE_MMX is defined.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46394d39e3551443f560f4050c74e380edcf20f9
---
libavcodec/pngdec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 3b31109..311109b 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;
More information about the ffmpeg-cvslog
mailing list