diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-03 23:46:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-25 16:18:40 +0200 |
commit | 5ac53d07a276ae019d9975ab57fc033ca565b142 (patch) | |
tree | e357dfdc88ea5588652aa847842695bbaf841e58 | |
parent | 02055da69ace89c7c8a6058969ecf34bb4c16332 (diff) | |
download | ffmpeg-5ac53d07a276ae019d9975ab57fc033ca565b142.tar.gz |
avcodec/h264: clear cur_pic structure instead of duplicating it in ff_h264_update_thread_context()
Fixes crash
Found-by: iive
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8710ee11d75eebc17e7d63bc6ffb91766933bd68)
Conflicts:
libavcodec/h264_slice.c
(cherry picked from commit cb44d69665596d2f19e032fc852162b0a6de0562)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 9111d923d2..7227e1ee27 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1682,6 +1682,7 @@ static int decode_update_thread_context(AVCodecContext *dst, memset(&h->mb, 0, sizeof(h->mb)); memset(&h->mb_luma_dc, 0, sizeof(h->mb_luma_dc)); memset(&h->mb_padding, 0, sizeof(h->mb_padding)); + memset(&h->cur_pic, 0, sizeof(h->cur_pic)); h->avctx = dst; h->DPB = NULL; |