shithub: libvpx

Download patch

ref: 558d93f3a5a41a75aa8c3bfce97c8e49509fcb7e
parent: 59058775fc1c533e547098ff10c8bb587757f107
author: Ronald S. Bultje <[email protected]>
date: Tue Oct 20 15:40:36 EDT 2015

vp10: fix tile size in remuxing step.

Change-Id: Id48fb193bbdb3afed1d0db26c4ddded65a293b1b

--- a/vp10/encoder/bitstream.c
+++ b/vp10/encoder/bitstream.c
@@ -1471,17 +1471,17 @@
     if (n == n_tiles - 1) {
       tile_sz = sz - rpos;
     } else {
-      tile_sz = mem_get_le32(&dest[rpos]);
+      tile_sz = mem_get_le32(&dest[rpos]) + 1;
       rpos += 4;
       switch (mag) {
         case 0:
-          dest[wpos] = tile_sz;
+          dest[wpos] = tile_sz - 1;
           break;
         case 1:
-          mem_put_le16(&dest[wpos], tile_sz);
+          mem_put_le16(&dest[wpos], tile_sz - 1);
           break;
         case 2:
-          mem_put_le24(&dest[wpos], tile_sz);
+          mem_put_le24(&dest[wpos], tile_sz - 1);
           break;
         case 3:  // remuxing should only happen if mag < 3
         default: