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:
Michael Niedermayer 2016-10-21 15:01:36 +02:00
parent 966c5c7bb8
commit de0cd0ffc9
1 changed files with 1 additions and 0 deletions

View File

@ -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);