Commit 558d93f3 authored by Ronald S. Bultje's avatar Ronald S. Bultje

vp10: fix tile size in remuxing step.

Change-Id: Id48fb193bbdb3afed1d0db26c4ddded65a293b1b
parent 59058775
...@@ -1471,17 +1471,17 @@ static int remux_tiles(uint8_t *dest, const int sz, ...@@ -1471,17 +1471,17 @@ static int remux_tiles(uint8_t *dest, const int sz,
if (n == n_tiles - 1) { if (n == n_tiles - 1) {
tile_sz = sz - rpos; tile_sz = sz - rpos;
} else { } else {
tile_sz = mem_get_le32(&dest[rpos]); tile_sz = mem_get_le32(&dest[rpos]) + 1;
rpos += 4; rpos += 4;
switch (mag) { switch (mag) {
case 0: case 0:
dest[wpos] = tile_sz; dest[wpos] = tile_sz - 1;
break; break;
case 1: case 1:
mem_put_le16(&dest[wpos], tile_sz); mem_put_le16(&dest[wpos], tile_sz - 1);
break; break;
case 2: case 2:
mem_put_le24(&dest[wpos], tile_sz); mem_put_le24(&dest[wpos], tile_sz - 1);
break; break;
case 3: // remuxing should only happen if mag < 3 case 3: // remuxing should only happen if mag < 3
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment