# HG changeset patch # User michael # Date 1119865036 0 # Node ID 7da100c7403c5eccaa3752c28ae96e51b9271b95 # Parent 07a63c88e3a722a573ade0513e4d6879a42c7d2d keep decoding nal units after an error diff -r 07a63c88e3a7 -r 7da100c7403c h264.c --- a/h264.c Mon Jun 27 00:55:29 2005 +0000 +++ b/h264.c Mon Jun 27 09:37:16 2005 +0000 @@ -7222,7 +7222,10 @@ h->inter_gb_ptr= &s->gb; s->data_partitioning = 0; - if(decode_slice_header(h) < 0) return -1; + if(decode_slice_header(h) < 0){ + av_log(h->s.avctx, AV_LOG_ERROR, "decode_slice_header error\n"); + break; + } if(h->redundant_pic_count==0 && s->hurry_up < 5 ) decode_slice(h); break; @@ -7232,7 +7235,9 @@ h->inter_gb_ptr= NULL; s->data_partitioning = 1; - if(decode_slice_header(h) < 0) return -1; + if(decode_slice_header(h) < 0){ + av_log(h->s.avctx, AV_LOG_ERROR, "decode_slice_header error\n"); + } break; case NAL_DPB: init_get_bits(&h->intra_gb, ptr, bit_length);