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

Disable warped motion for invalid warped global motion parameters

But don't abort decoding; instead, simply force translational motion.
parent ae1eb5f2
......@@ -893,7 +893,7 @@ static int parse_frame_hdr(Dav1dContext *const c, GetBits *const gb) {
mat[1] = dav1d_get_bits_subexp(gb, ref_mat[1] >> shift, bits) * (1 << shift);
if (dav1d_get_shear_params(&hdr->gmv[i]))
goto error;
hdr->gmv[i].type = WM_TYPE_TRANSLATION;
}
}
#if DEBUG_FRAME_HDR
......
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