mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-02 05:56:46 +08:00
In png decoder, only call png_init_mmx if HAVE_MMX is defined.
This commit is contained in:
@ -624,7 +624,9 @@ static av_cold int png_dec_init(AVCodecContext *avctx)
|
|||||||
avcodec_get_frame_defaults(&s->picture1);
|
avcodec_get_frame_defaults(&s->picture1);
|
||||||
avcodec_get_frame_defaults(&s->picture2);
|
avcodec_get_frame_defaults(&s->picture2);
|
||||||
|
|
||||||
|
#ifdef HAVE_MMX
|
||||||
ff_png_init_mmx(s);
|
ff_png_init_mmx(s);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!s->add_paeth_prediction)
|
if (!s->add_paeth_prediction)
|
||||||
s->add_paeth_prediction = add_paeth_prediction_c;
|
s->add_paeth_prediction = add_paeth_prediction_c;
|
||||||
|
Reference in New Issue
Block a user