Originally committed as revision 15732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Kostya Shishkov authored on 2008/10/28 14:37:02... | ... |
@@ -40,7 +40,8 @@ static int rv30_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn |
40 | 40 |
int mb_size; |
41 | 41 |
|
42 | 42 |
memset(si, 0, sizeof(SliceInfo)); |
43 |
- skip_bits(gb, 3); |
|
43 |
+ if(get_bits(gb, 3)) |
|
44 |
+ return -1; |
|
44 | 45 |
si->type = get_bits(gb, 2); |
45 | 46 |
if(si->type == 1) si->type = 0; |
46 | 47 |
if(get_bits1(gb)) |