Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2018-11-13 00:58:47 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2018-11-13 00:59:26 +0300
commit8948e5af3dcbf9e830fed38347ac600de7fcf3e4 (patch)
tree56f92c08bcf0dd88958875345aa4f3bb266b0940
parent10f6ed1b412589933c6c15108d814c1278540805 (diff)
Add missing .data suffix so we don't overwrite in memset()
-rw-r--r--src/obu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obu.c b/src/obu.c
index 7e51e4e..ed7d17e 100644
--- a/src/obu.c
+++ b/src/obu.c
@@ -965,7 +965,7 @@ static int parse_frame_hdr(Dav1dContext *const c, GetBits *const gb,
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",