1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Detect split RV30 slices

Originally committed as revision 15732 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov 2008-10-28 05:37:02 +00:00
parent 75add6fbfc
commit 42d6c3ba36

View File

@ -40,7 +40,8 @@ static int rv30_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn
int mb_size;
memset(si, 0, sizeof(SliceInfo));
skip_bits(gb, 3);
if(get_bits(gb, 3))
return -1;
si->type = get_bits(gb, 2);
if(si->type == 1) si->type = 0;
if(get_bits1(gb))