summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-23 14:05:45 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-24 00:07:50 +0000
commitc160bbef070b7d0b2dbc8a9aacaaf6b465cee418 (patch)
tree9d78504e57275ae0efe88f4db2bd25e2a3fbef2b
parent022f4330d12d29232fef4dcf2bcd578b8c68be83 (diff)
mpegdemux: avoid NULL manipulation if invalid input
-rw-r--r--gst/mpegdemux/mpegtsparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegdemux/mpegtsparse.c b/gst/mpegdemux/mpegtsparse.c
index 164321ec4..273b3edd4 100644
--- a/gst/mpegdemux/mpegtsparse.c
+++ b/gst/mpegdemux/mpegtsparse.c
@@ -1274,6 +1274,8 @@ mpegts_parse_get_tags_from_sdt (MpegTSParse * parse, 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_parse_get_program (parse, program_number);