mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
faad: guard against codec_data field with a NULL buffer in caps
Fixes #609478.
This commit is contained in:
parent
1da893ba68
commit
26e7e93bfd
1 changed files with 2 additions and 0 deletions
|
@ -353,6 +353,8 @@ gst_faad_setcaps (GstPad * pad, GstCaps * caps)
|
|||
faad->packetised = TRUE;
|
||||
buf = gst_value_get_buffer (value);
|
||||
|
||||
g_return_val_if_fail (buf != NULL, FALSE);
|
||||
|
||||
cdata = GST_BUFFER_DATA (buf);
|
||||
csize = GST_BUFFER_SIZE (buf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue