mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
Check for zero length files
This commit is contained in:
parent
1f536df70e
commit
2fb6bb9717
@ -38,7 +38,7 @@ static void sbc_typefind(GstTypeFind *tf, gpointer ignore)
|
||||
{
|
||||
guint8 *data = gst_type_find_peek(tf, 0, 1);
|
||||
|
||||
if (*data != 0x9c) /* SBC syncword */
|
||||
if (data == NULL || *data != 0x9c) /* SBC syncword */
|
||||
return;
|
||||
|
||||
gst_type_find_suggest(tf, GST_TYPE_FIND_POSSIBLE, SBC_CAPS);
|
||||
|
Loading…
Reference in New Issue
Block a user