shithub: dav1d

Download patch

ref: 597a6eb9cee41ddbebf019f3b20f50e8da48061c
parent: ae1eb5f2b755d3cec760de3929a7003094414f8f
author: Ronald S. Bultje <[email protected]>
date: Thu Nov 15 03:38:28 EST 2018

Disable warped motion for invalid warped global motion parameters

But don't abort decoding; instead, simply force translational motion.

--- a/src/obu.c
+++ b/src/obu.c
@@ -893,7 +893,7 @@
             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