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
path: root/src/obu.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-08-06 22:40:50 +0300
committerJames Almer <jamrial@gmail.com>2020-08-06 22:45:28 +0300
commite86ddd562e89b044ecff8519f1e4f60372dcbd3e (patch)
tree1d9ffaf07bfd97dd75b3c5da7de35d41d5d458a9 /src/obu.c
parenta579cb8f538002be9e65bd9c2f43782d28d89282 (diff)
obu: remove a few unnecessary calls to memset()
The relevant structs are filled immediately after them.
Diffstat (limited to 'src/obu.c')
-rw-r--r--src/obu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/obu.c b/src/obu.c
index d0e74f0..255c2a6 100644
--- a/src/obu.c
+++ b/src/obu.c
@@ -1374,7 +1374,6 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, const int globa
Dav1dRef *ref = dav1d_ref_create(sizeof(Dav1dContentLightLevel));
if (!ref) return DAV1D_ERR(ENOMEM);
Dav1dContentLightLevel *const content_light = ref->data;
- memset(content_light, 0, sizeof(*content_light));
content_light->max_content_light_level = dav1d_get_bits(&gb, 16);
content_light->max_frame_average_light_level = dav1d_get_bits(&gb, 16);
@@ -1396,7 +1395,6 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, const int globa
Dav1dRef *ref = dav1d_ref_create(sizeof(Dav1dMasteringDisplay));
if (!ref) return DAV1D_ERR(ENOMEM);
Dav1dMasteringDisplay *const mastering_display = ref->data;
- memset(mastering_display, 0, sizeof(*mastering_display));
for (int i = 0; i < 3; i++) {
mastering_display->primaries[i][0] = dav1d_get_bits(&gb, 16);