[vlc-commits] [Git][videolan/vlc][master] rtp: fix initialization

Romain Vimont (@rom1v) gitlab at videolan.org
Wed May 4 22:31:53 UTC 2022



Romain Vimont pushed to branch master at VideoLAN / VLC


Commits:
d651ee5b by Romain Vimont at 2022-05-04T22:20:28+00:00
rtp: fix initialization

The pointer pt->opaque was initialized only under some conditions in
rtp_h264_open(), but its value was used unconditionnaly in
rtp_h264_init().

Reported by ASAN.

- - - - -


1 changed file:

- modules/access/rtp/h264.c


Changes:

=====================================
modules/access/rtp/h264.c
=====================================
@@ -377,6 +377,7 @@ static int rtp_h264_open(vlc_object_t *obj, struct vlc_rtp_pt *pt,
     else
         return VLC_ENOTSUP;
 
+    pt->opaque = NULL;
     if(desc->parameters)
     {
         psz = strstr(desc->parameters, "sprop-parameter-sets=");



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d651ee5bc193f64c5ae849b6d463150b71872f7c
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