ref: e5baa0428111093036b91da3397bafc81d0f27c2
parent: 1ccf6c1fc377432ff35ca75dbd018dd13f06a6f6
author: Ronald S. Bultje <[email protected]>
date: Wed Oct 24 05:22:59 EDT 2018
Initialize restoration.type to RESTORATION_NONE for grayscale content Fixes #89.
--- a/src/obu.c
+++ b/src/obu.c
@@ -728,6 +728,9 @@
if (seqhdr->layout != DAV1D_PIXEL_LAYOUT_I400) {
hdr->restoration.type[1] = dav1d_get_bits(gb, 2);
hdr->restoration.type[2] = dav1d_get_bits(gb, 2);
+ } else {
+ hdr->restoration.type[1] =
+ hdr->restoration.type[2] = RESTORATION_NONE;
}
if (hdr->restoration.type[0] || hdr->restoration.type[1] ||