[vlc-commits] demux: tta: avoid null deref on missing/failed decoder

Francois Cartegnie git at videolan.org
Thu Mar 23 21:11:42 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 23 21:10:11 2017 +0100| [4c6361423970773ac2ef9974140b709587df2e18] | committer: Francois Cartegnie

demux: tta: avoid null deref on missing/failed decoder

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

 modules/demux/tta.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/tta.c b/modules/demux/tta.c
index d55962f..0662215 100644
--- a/modules/demux/tta.c
+++ b/modules/demux/tta.c
@@ -212,7 +212,8 @@ static int Demux( demux_t *p_demux )
     p_sys->i_currentframe++;
 
     es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_data->i_dts );
-    es_out_Send( p_demux->out, p_sys->p_es, p_data );
+    if( p_sys->p_es )
+        es_out_Send( p_demux->out, p_sys->p_es, p_data );
 
     return 1;
 }



More information about the vlc-commits mailing list