vlc | branch: master | Hannes Domani <[email protected]> | Fri Jan 15 15:49:45 
2016 +0100| [7e6fe7538db7b497cfb1ad2ae7328fb94e5e4a26] | committer: 
Jean-Baptiste Kempf

demux: ts: fix uninitialized fields (fix #15319)

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/demux/mpeg/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 3276584..342770f 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -4500,7 +4500,7 @@ static void PMTSetupEsDvbSubtitle( demux_t *p_demux, 
ts_pes_t *p_pes,
             }
             else
             {
-                p_subs_es = malloc( sizeof(*p_subs_es) );
+                p_subs_es = calloc( 1, sizeof(*p_subs_es) );
                 if( !p_subs_es )
                     break;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to