changeset 10760:c199eb2ad4ec libavcodec

It appears s->bitstream_buffer_size has to be 0 at the end so rather use assert.
author michael
date Fri, 01 Jan 2010 21:07:52 +0000
parents 2bcd7a44350f
children 1d22da3122b9
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;