[FFmpeg-cvslog] r20996 - trunk/libavcodec/h263dec.c

michael subversion
Fri Jan 1 22:07:53 CET 2010


Author: michael
Date: Fri Jan  1 22:07:52 2010
New Revision: 20996

Log:
It appears s->bitstream_buffer_size has to be 0 at the end so rather use assert.

Modified:
   trunk/libavcodec/h263dec.c

Modified: trunk/libavcodec/h263dec.c
==============================================================================
--- trunk/libavcodec/h263dec.c	Fri Jan  1 16:07:35 2010	(r20995)
+++ trunk/libavcodec/h263dec.c	Fri Jan  1 22:07:52 2010	(r20996)
@@ -667,8 +667,9 @@ retry:
             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;
 



More information about the ffmpeg-cvslog mailing list