Commit e5baa042 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Janne Grunau

Initialize restoration.type to RESTORATION_NONE for grayscale content

Fixes #89.
parent 1ccf6c1f
......@@ -728,6 +728,9 @@ static int parse_frame_hdr(Dav1dContext *const c, GetBits *const gb,
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] ||
......
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