diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-02 01:55:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-06 18:25:50 +0100 |
commit | 05bc6f8ba653e979e55bfbc33c7f078031081dba (patch) | |
tree | f2801a88be6530d487c07468f1defdecbe04258b | |
parent | c2517fb363f56e71697507d56e58ebe117475cfa (diff) | |
download | ffmpeg-05bc6f8ba653e979e55bfbc33c7f078031081dba.tar.gz |
avcodec/h264_slice: Clear table pointers to avoid stale pointers
Might fix Ticket3889
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 547fce95858ef83f8c25ae347e3ae3b8ba437fd9)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264_slice.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index ded26f8465..489000b69e 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -586,6 +586,17 @@ int ff_h264_update_thread_context(AVCodecContext *dst, h->mb_type_pool = NULL; h->ref_index_pool = NULL; h->motion_val_pool = NULL; + h->intra4x4_pred_mode= NULL; + h->non_zero_count = NULL; + h->slice_table_base = NULL; + h->slice_table = NULL; + h->cbp_table = NULL; + h->chroma_pred_mode_table = NULL; + memset(h->mvd_table, 0, sizeof(h->mvd_table)); + h->direct_table = NULL; + h->list_counts = NULL; + h->mb2b_xy = NULL; + h->mb2br_xy = NULL; for (i = 0; i < 2; i++) { h->rbsp_buffer[i] = NULL; h->rbsp_buffer_size[i] = 0; |