OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
966c5c7
)
avcodec/mpegvideo_enc: Add missing emms_c() to clear MMX state after SIMD use
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 21 Oct 2016 13:01:36 +0000
(15:01 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 22 Oct 2016 11:46:46 +0000
(13:46 +0200)
Fixes undefined behavior due to calling libc allocation with unclean FPU state
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegvideo_enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo_enc.c
b/libavcodec/mpegvideo_enc.c
index
f34003e
..
1540e5c
100644
(file)
--- 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);