mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/mpegvideo_enc: Add missing emms_c() to clear MMX state after SIMD use
Fixes undefined behavior due to calling libc allocation with unclean FPU state Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
966c5c7bb8
commit
de0cd0ffc9
@ -1320,6 +1320,7 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
|
||||
EDGE_BOTTOM);
|
||||
}
|
||||
}
|
||||
emms_c();
|
||||
}
|
||||
}
|
||||
ret = av_frame_copy_props(pic->f, pic_arg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user