|
|
@@ -167,6 +167,7 @@ static int h263_decode_gob_header(MpegEncContext *s) |
|
|
/* We have a GBSC probably with GSTUFF */ |
|
|
/* We have a GBSC probably with GSTUFF */ |
|
|
skip_bits(&s->gb, 16); /* Drop the zeros */ |
|
|
skip_bits(&s->gb, 16); /* Drop the zeros */ |
|
|
left= get_bits_left(&s->gb); |
|
|
left= get_bits_left(&s->gb); |
|
|
|
|
|
left = FFMIN(left, 32); |
|
|
//MN: we must check the bits left or we might end in an infinite loop (or segfault) |
|
|
//MN: we must check the bits left or we might end in an infinite loop (or segfault) |
|
|
for(;left>13; left--){ |
|
|
for(;left>13; left--){ |
|
|
if(get_bits1(&s->gb)) break; /* Seek the '1' bit */ |
|
|
if(get_bits1(&s->gb)) break; /* Seek the '1' bit */ |
|
|
|