Browse Source

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>
tags/n3.2
Michael Niedermayer 9 years ago
parent
commit
de0cd0ffc9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mpegvideo_enc.c

+ 1
- 0
libavcodec/mpegvideo_enc.c 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);


Loading…
Cancel
Save