diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-08-24 09:24:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-08-24 09:24:50 +0000 |
commit | 25be48eb486e93728d495bb68b624a349616c367 (patch) | |
tree | 379f6f56a66840b603eaacfece41df2805203b2a | |
parent | d00f8e177145dfea67360b15183b55393e6eb7b7 (diff) | |
download | ffmpeg-25be48eb486e93728d495bb68b624a349616c367.tar.gz |
fix non ALT bitstream reader
Originally committed as revision 6070 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index f88114f70f..02e2fcbe0d 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -5799,7 +5799,7 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){ 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); } |