diff options
author | James Almer <jamrial@gmail.com> | 2020-08-06 22:40:50 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-08-06 22:45:28 +0300 |
commit | e86ddd562e89b044ecff8519f1e4f60372dcbd3e (patch) | |
tree | 1d9ffaf07bfd97dd75b3c5da7de35d41d5d458a9 /src/obu.c | |
parent | a579cb8f538002be9e65bd9c2f43782d28d89282 (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |