changeset 8075:e71badf6877a libavcodec

Detect split RV30 slices
author kostya
date Tue, 28 Oct 2008 05:37:02 +0000
parents 31e90d4abe28
children b33be95359db
files rv30.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rv30.c	Mon Oct 27 19:07:39 2008 +0000
+++ b/rv30.c	Tue Oct 28 05:37:02 2008 +0000
@@ -40,7 +40,8 @@
     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))