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