changeset 3615:7963ceb93083 libavcodec

fix non ALT bitstream reader
author michael
date Thu, 24 Aug 2006 09:24:50 +0000
parents d0310d1cce13
children 270790578711
files h263.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Thu Aug 24 08:40:09 2006 +0000
+++ b/h263.c	Thu Aug 24 09:24:50 2006 +0000
@@ -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);
     }