mpegdemux: avoid NULL manipulation if invalid input

This commit is contained in:
Mark Nauwelaerts 2012-01-23 14:05:45 +01:00
parent 552f991ba0
commit f1810502a7

View file

@ -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);