summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-23 14:06:54 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-23 14:22:18 +0100
commitb00ed32c5a541b3ae50d772c3ef6d66a4753efcd (patch)
treec95c16c7b64f51eed4028b54a576ebc262579e13 /gst
parentf1810502a72719be3ac5aa20bf0310f203b31987 (diff)
downloadgstreamer-plugins-bad-b00ed32c5a541b3ae50d772c3ef6d66a4753efcd.tar.gz
mpegtsdemux: avoid NULL manipulation if invalid input
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegtsdemux/mpegtsbase.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c
index d8c7073e5..c63170e1e 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);