Browse Source

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>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
8710ee11d7
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/h264_slice.c

+ 1
- 0
libavcodec/h264_slice.c View File

@@ -576,6 +576,7 @@ int ff_h264_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;


Loading…
Cancel
Save