Commit 62976f49 authored by reimar's avatar reimar

Avoid calling decode_slice when context_initialized is not set.

Avoids a crash due to dsp.clear_blocks being NULL when called.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7547 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c06ceb6
......@@ -8067,6 +8067,7 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
h->inter_gb_ptr= &h->inter_gb;
if(h->redundant_pic_count==0 && h->intra_gb_ptr && s->data_partitioning
&& s->context_initialized
&& s->hurry_up < 5
&& (avctx->skip_frame < AVDISCARD_NONREF || h->nal_ref_idc)
&& (avctx->skip_frame < AVDISCARD_BIDIR || h->slice_type!=B_TYPE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment