Commit 911565f6 authored by michael's avatar michael

fix non ALT bitstream reader


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6070 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7ef9cda9
......@@ -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);
}
......
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