[Ffmpeg-cvslog] r6070 - trunk/libavcodec/h263.c

michael subversion
Thu Aug 24 11:24:51 CEST 2006


Author: michael
Date: Thu Aug 24 11:24:50 2006
New Revision: 6070

Modified:
   trunk/libavcodec/h263.c

Log:
fix non ALT bitstream reader


Modified: trunk/libavcodec/h263.c
==============================================================================
--- trunk/libavcodec/h263.c	(original)
+++ trunk/libavcodec/h263.c	Thu Aug 24 11:24:50 2006
@@ -5799,7 +5799,7 @@
     int ver = 0, build = 0, ver2 = 0, ver3 = 0;
     char last;
 
-    for(i=0; i<255 && gb->index < gb->size_in_bits; i++){
+    for(i=0; i<255 && get_bits_count(gb) < gb->size_in_bits; i++){
         if(show_bits(gb, 23) == 0) break;
         buf[i]= get_bits(gb, 8);
     }




More information about the ffmpeg-cvslog mailing list