changeset 4354:d18568fb0187 libavcodec

Avoid calling decode_slice when context_initialized is not set. Avoids a crash due to dsp.clear_blocks being NULL when called.
author reimar
date Tue, 16 Jan 2007 17:46:26 +0000
parents d9cd0e5255d7
children 085f24822713
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)