diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-21 15:01:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-22 13:46:46 +0200 |
commit | de0cd0ffc9e4b7780d0cae5f969aca4e3bdf7e48 (patch) | |
tree | 4a7d074753e550ec01e817d9cff28b38b30cffc4 | |
parent | 966c5c7bb8bad6fef3efce935b943d05ccea0eaa (diff) | |
download | ffmpeg-de0cd0ffc9e4b7780d0cae5f969aca4e3bdf7e48.tar.gz |
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>
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index f34003ec88..1540e5c11d 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -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); |