[FFmpeg-cvslog] r15732 - trunk/libavcodec/rv30.c
kostya
subversion
Tue Oct 28 06:37:02 CET 2008
Author: kostya
Date: Tue Oct 28 06:37:02 2008
New Revision: 15732
Log:
Detect split RV30 slices
Modified:
trunk/libavcodec/rv30.c
Modified: trunk/libavcodec/rv30.c
==============================================================================
--- trunk/libavcodec/rv30.c (original)
+++ trunk/libavcodec/rv30.c Tue Oct 28 06:37:02 2008
@@ -40,7 +40,8 @@ static int rv30_parse_slice_header(RV34D
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))
More information about the ffmpeg-cvslog
mailing list