Commit 25be48eb authored by Michael Niedermayer's avatar Michael Niedermayer

fix non ALT bitstream reader

Originally committed as revision 6070 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d00f8e17
...@@ -5799,7 +5799,7 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){ ...@@ -5799,7 +5799,7 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){
int ver = 0, build = 0, ver2 = 0, ver3 = 0; int ver = 0, build = 0, ver2 = 0, ver3 = 0;
char last; 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; if(show_bits(gb, 23) == 0) break;
buf[i]= get_bits(gb, 8); buf[i]= get_bits(gb, 8);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment