diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-10-28 05:37:02 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-10-28 05:37:02 +0000 |
commit | 42d6c3ba36170a52083b8e721287a4a9f28363e3 (patch) | |
tree | 8b7bb22ba9ac6732aafb2a0845e22ada298f129c /libavcodec | |
parent | 75add6fbfc54832ce2d070c50a7d107e8a69b13a (diff) | |
download | ffmpeg-42d6c3ba36170a52083b8e721287a4a9f28363e3.tar.gz |
Detect split RV30 slices
Originally committed as revision 15732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/rv30.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c index 2cd12bc296..0202873e1a 100644 --- a/libavcodec/rv30.c +++ b/libavcodec/rv30.c @@ -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)) |