[vlc-commits] [Git][videolan/vlc][master] packetizer: h264: fix potential uninitialized variable warning

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 23 11:08:31 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7d12cc5b by Steve Lhomme at 2023-11-23T10:34:08+00:00
packetizer: h264: fix potential uninitialized variable warning

- - - - -


1 changed file:

- modules/packetizer/h264.c


Changes:

=====================================
modules/packetizer/h264.c
=====================================
@@ -1109,9 +1109,9 @@ static bool PutXPS( decoder_t *p_dec, uint8_t i_nal_type, block_t *p_frag )
     block_t **pp_block_dst;
     /* all depend on pp_xps_dst */
     void **pp_xps_dst = NULL;
-    const void **pp_active; /* optional */
-    void * (* pf_decode_xps)(const uint8_t *, size_t, bool);
-    void   (* pf_release_xps)(void *);
+    const void **pp_active = NULL; /* optional */
+    void * (* pf_decode_xps)(const uint8_t *, size_t, bool) = NULL;
+    void   (* pf_release_xps)(void *) = NULL;
 
     switch( i_nal_type )
     {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7d12cc5bb9a9cde0a1637f1200abe0fcc3e00ac4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7d12cc5bb9a9cde0a1637f1200abe0fcc3e00ac4
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list