[vlc-commits] demux: ts: missing check
Francois Cartegnie
git at videolan.org
Tue Dec 20 21:42:47 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 20 14:17:25 2016 +0100| [7adcc6713f0609ae060a27dd4e3aa85919ecc29e] | committer: Francois Cartegnie
demux: ts: missing check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7adcc6713f0609ae060a27dd4e3aa85919ecc29e
---
modules/demux/mpeg/ts_si.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/demux/mpeg/ts_si.c b/modules/demux/mpeg/ts_si.c
index abcf19f..fd2eed1 100644
--- a/modules/demux/mpeg/ts_si.c
+++ b/modules/demux/mpeg/ts_si.c
@@ -399,6 +399,12 @@ static void EITCallBack( demux_t *p_demux, dvbpsi_eit_t *p_eit )
* (Should be even better with tableid+segmentid compound if dvbpsi would export segment id)
* see TS 101 211, 4.1.4.2.1 */
p_epg = vlc_epg_New( p_eit->i_table_id, p_eit->i_extension );
+ if( !p_epg )
+ {
+ dvbpsi_eit_delete( p_eit );
+ return;
+ }
+
for( p_evt = p_eit->p_first_event; p_evt; p_evt = p_evt->p_next )
{
dvbpsi_descriptor_t *p_dr;
More information about the vlc-commits
mailing list