[vlc-commits] demux: ps: missing es_format_Init
Francois Cartegnie
git at videolan.org
Sun Jul 9 14:51:38 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jul 9 12:26:31 2017 +0200| [2bd7e9c2210f01a9dab1d5994068ec8587e02076] | committer: Francois Cartegnie
demux: ps: missing es_format_Init
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2bd7e9c2210f01a9dab1d5994068ec8587e02076
---
modules/demux/mpeg/ps.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mpeg/ps.h b/modules/demux/mpeg/ps.h
index eef47450fe..932178ae59 100644
--- a/modules/demux/mpeg/ps.h
+++ b/modules/demux/mpeg/ps.h
@@ -686,10 +686,11 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt,
/* Check/Modify our existing tracks */
for( int i = 0; i < PS_TK_COUNT; i++ )
{
- ps_track_t tk_tmp;
-
if( !tk[i].b_configured || !tk[i].es ) continue;
+ ps_track_t tk_tmp;
+ es_format_Init( &tk_tmp.fmt, UNKNOWN_ES, 0 );
+
if( ps_track_fill( &tk_tmp, p_psm, tk[i].i_id, p_pkt, false ) != VLC_SUCCESS )
continue;
More information about the vlc-commits
mailing list