You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264: check context state before decoding slice data partitions
Fixes mov_h264_aac__Demo_FlagOfOurFathers.mov.SIGSEGV.4e9.656. Found-by: Mateusz "j00ru" Jurczyk CC: libav-stable@libav.org
This commit is contained in:
@@ -3848,6 +3848,7 @@ again:
|
|||||||
if (hx->redundant_pic_count == 0 &&
|
if (hx->redundant_pic_count == 0 &&
|
||||||
hx->intra_gb_ptr &&
|
hx->intra_gb_ptr &&
|
||||||
hx->s.data_partitioning &&
|
hx->s.data_partitioning &&
|
||||||
|
s->current_picture_ptr &&
|
||||||
s->context_initialized &&
|
s->context_initialized &&
|
||||||
(avctx->skip_frame < AVDISCARD_NONREF || hx->nal_ref_idc) &&
|
(avctx->skip_frame < AVDISCARD_NONREF || hx->nal_ref_idc) &&
|
||||||
(avctx->skip_frame < AVDISCARD_BIDIR ||
|
(avctx->skip_frame < AVDISCARD_BIDIR ||
|
||||||
|
Reference in New Issue
Block a user