diff rv30.c @ 8075:e71badf6877a libavcodec

Detect split RV30 slices
author kostya
date Tue, 28 Oct 2008 05:37:02 +0000
parents e943e1409077
children 51c9946c70f9
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))