From b00ed32c5a541b3ae50d772c3ef6d66a4753efcd Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 23 Jan 2012 14:06:54 +0100 Subject: [PATCH] mpegtsdemux: avoid NULL manipulation if invalid input --- gst/mpegtsdemux/mpegtsbase.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index d8c7073e5b..c63170e1e1 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -1088,6 +1088,8 @@ mpegts_base_get_tags_from_sdt (MpegTSBase * base, GstStructure * sdt_info) * which looks like service-%d */ sid_str = gst_structure_get_name (service); tmp = g_strstr_len (sid_str, -1, "-"); + if (!tmp) + continue; program_number = atoi (++tmp); program = mpegts_base_get_program (base, program_number);