shithub: dav1d

Download patch

ref: 8948e5af3dcbf9e830fed38347ac600de7fcf3e4
parent: 10f6ed1b412589933c6c15108d814c1278540805
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Mon Nov 12 11:58:47 EST 2018

Add missing .data suffix so we don't overwrite in memset()

--- a/src/obu.c
+++ b/src/obu.c
@@ -965,7 +965,7 @@
             fgd->clip_to_restricted_range = dav1d_get_bits(gb, 1);
         }
     } else {
-        memset(&hdr->film_grain.data, 0, sizeof(hdr->film_grain));
+        memset(&hdr->film_grain.data, 0, sizeof(hdr->film_grain.data));
     }
 #if DEBUG_FRAME_HDR
     printf("HDR: post-filmgrain: off=%ld\n",