faad: guard against codec_data field with a NULL buffer in caps

Fixes #609478.
This commit is contained in:
Tim-Philipp Müller 2010-02-16 16:49:39 +00:00
parent 1da893ba68
commit 26e7e93bfd

View file

@ -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);