shithub: dav1d

Download patch

ref: c9b91beed10228a1916e47a2189650c607da27e3
parent: 91e0b478068248e8b66a1d4580aa7d70eae188b3
author: James Almer <jamrial@gmail.com>
date: Sun Oct 21 15:25:14 EDT 2018

obu: fix parsing force_integer_mv on frame headers

--- a/src/obu.c
+++ b/src/obu.c
@@ -358,6 +358,11 @@
     if (hdr->allow_screen_content_tools)
         hdr->force_integer_mv = seqhdr->force_integer_mv == ADAPTIVE ?
                                 dav1d_get_bits(gb, 1) : seqhdr->force_integer_mv;
+    else
+        hdr->force_integer_mv = 0;
+
+    if (!(hdr->frame_type & 1))
+        hdr->force_integer_mv = 1;
 
     if (seqhdr->frame_id_numbers_present)
         hdr->frame_id = dav1d_get_bits(gb, seqhdr->frame_id_n_bits);