# HG changeset patch # User michael # Date 1262380072 0 # Node ID c199eb2ad4ec8dd2bda76401525e1ec42bd811f0 # Parent 2bcd7a44350f60c69ade4d180b1dee1991212f11 It appears s->bitstream_buffer_size has to be 0 at the end so rather use assert. diff -r 2bcd7a44350f -r c199eb2ad4ec h263dec.c --- a/h263dec.c Fri Jan 01 12:28:18 2010 +0000 +++ b/h263dec.c Fri Jan 01 21:07:52 2010 +0000 @@ -667,8 +667,9 @@ s->error_status_table[s->mb_num-1]= AC_ERROR|DC_ERROR|MV_ERROR; } + assert(s->bitstream_buffer_size==0); /* divx 5.01+ bistream reorder stuff */ - if(s->codec_id==CODEC_ID_MPEG4 && s->bitstream_buffer_size==0 && s->divx_packed){ + if(s->codec_id==CODEC_ID_MPEG4 && s->divx_packed){ int current_pos= get_bits_count(&s->gb)>>3; int startcode_found=0;