# HG changeset patch # User reimar # Date 1168969586 0 # Node ID d18568fb0187d093fde76bfa155173e295d0a94c # Parent d9cd0e5255d7365084032725547601aeb8a06f5b Avoid calling decode_slice when context_initialized is not set. Avoids a crash due to dsp.clear_blocks being NULL when called. diff -r d9cd0e5255d7 -r d18568fb0187 h264.c --- a/h264.c Mon Jan 15 23:26:09 2007 +0000 +++ b/h264.c Tue Jan 16 17:46:26 2007 +0000 @@ -8067,6 +8067,7 @@ 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)