mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
mpegdemux: avoid NULL manipulation if invalid input
This commit is contained in:
parent
552f991ba0
commit
f1810502a7
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue