Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-24 18:05:19 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-06-24 18:05:19 +0400
commitbbe26eff2235dc2d1c79a5a1e25b46d8d7f0fe08 (patch)
tree2166155a84d7f37b9be8bb65293b8a5549efc613 /libavcodec/h264.c
parenta46e578ddacd680b5b169a70c61032381a1b9f63 (diff)
h264: Fix null pointer dereference with disabled error concealment
Fixes Ticket2551 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index bb105eeeb4..edd34aef5f 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4287,7 +4287,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
avctx->codec_id != AV_CODEC_ID_H264 ||
(CONFIG_GRAY && (h->flags & CODEC_FLAG_GRAY));
- if (!(h->avctx->active_thread_type & FF_THREAD_SLICE) && h->picture_structure == PICT_FRAME) {
+ if (!(h->avctx->active_thread_type & FF_THREAD_SLICE) && h->picture_structure == PICT_FRAME && h->er.error_status_table) {
const int start_i = av_clip(h->resync_mb_x + h->resync_mb_y * h->mb_width, 0, h->mb_num - 1);
if (start_i) {
int prev_status = h->er.error_status_table[h->er.mb_index2xy[start_i - 1]];