mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
typefindfunctions: fix crash in new MSS typefinder
Fixes icydemux test_first_buf_offset_when_merged_for_typefinding unit test segfaulting on a NULL pointer.
This commit is contained in:
parent
c5840ebbd9
commit
88acbd60cd
1 changed files with 3 additions and 0 deletions
|
@ -3279,6 +3279,9 @@ mss_manifest_type_find (GstTypeFind * tf, gpointer unused)
|
|||
/* try detecting the charset */
|
||||
data = gst_type_find_peek (tf, 0, 2);
|
||||
|
||||
if (data == NULL)
|
||||
return;
|
||||
|
||||
/* look for a possible BOM */
|
||||
utf16_le = data[0] == 0xFF && data[1] == 0xFE;
|
||||
utf16_be = data[0] == 0xFE && data[1] == 0xFF;
|
||||
|
|
Loading…
Reference in a new issue