[vlc-commits] libmp4mux: fix zero initialization

Alexandre Janniaux git at videolan.org
Mon Feb 15 15:06:04 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Feb 10 11:49:57 2021 +0100| [51b69b7f5def3f1f1905585e28a195d080be4c5e] | committer: Alexandre Janniaux

libmp4mux: fix zero initialization

The first element (initialized here by the = { 0 }) is an array, and
require braces. To avoid clunky braces, use the designated zero
initialization with a known simpler field.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51b69b7f5def3f1f1905585e28a195d080be4c5e
---

 modules/mux/mp4/libmp4mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index dc94af2a9a..f8086485ab 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -777,7 +777,7 @@ static bo_t *GetHvcCTag(const uint8_t *p_extra, size_t i_extra,
         return hvcC;
     }
 
-    struct hevc_dcr_params params = { 0 };
+    struct hevc_dcr_params params = { .i_vps_count = 0 };
     const uint8_t *p_nal;
     size_t i_nal;
 



More information about the vlc-commits mailing list