shithub: dav1d

Download patch

ref: 7fe3b037953a6d13956f1e0a365607720e35987d
parent: 1e852dc1af7e72eafd4f815274eb63faab85185b
author: James Almer <jamrial@gmail.com>
date: Wed Nov 7 15:08:03 EST 2018

decode: clear the temporal tile data cache in Dav1dContext after copying to the frame context

--- a/src/decode.c
+++ b/src/decode.c
@@ -2961,6 +2961,7 @@
 
     // FIXME qsort so tiles are in order (for frame threading)
     memcpy(f->tile, c->tile, c->n_tile_data * sizeof(*f->tile));
+    memset(c->tile, 0, c->n_tile_data * sizeof(*c->tile));
     f->n_tile_data = c->n_tile_data;
     c->n_tile_data = 0;