]> granicus.if.org Git - libvpx/commitdiff
Set row and col tile number upper limit as 1024
authorJingning Han <jingning@google.com>
Tue, 19 May 2015 22:26:40 +0000 (15:26 -0700)
committerJingning Han <jingning@google.com>
Wed, 20 May 2015 00:20:36 +0000 (17:20 -0700)
Increase the supported row and col tile numbers from 4 and 64,
respectively to 1024 both.

Change-Id: Ic07435ff6783940a466a549a69a11ab3faf3247a

vp9/decoder/vp9_decodeframe.c

index 2976384d57ae2a3bceb47e84f375817a6e387825..44d6710f0b07c9b9e7e4c0070b4a1c5bc120861d 100644 (file)
@@ -1871,14 +1871,20 @@ static void setup_tile_info(VP9_COMMON *cm, struct vp9_read_bit_buffer *rb) {
   while (max_ones-- && vp9_rb_read_bit(rb))
     cm->log2_tile_cols++;
 
-  if (cm->log2_tile_cols > 6)
+  if (cm->log2_tile_cols > 10)
     vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
                        "Invalid number of tile columns");
 
   // rows
+#if CONFIG_ROW_TILE
+  if (cm->log2_tile_rows > 10)
+    vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
+                       "Invalid number of tile columns");
+#else
   cm->log2_tile_rows = vp9_rb_read_bit(rb);
   if (cm->log2_tile_rows)
     cm->log2_tile_rows += vp9_rb_read_bit(rb);
+#endif
 }
 
 typedef struct TileBuffer {