Commit b981f099 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

gst-libs/gst/riff/riff-media.c: Protect against unexpected NULL strf_data buffer.

Original commit message from CVS:
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
Protect against unexpected NULL strf_data buffer.
parent 0774022d
2006-04-29 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
Protect against unexpected NULL strf_data buffer.
2006-04-29 Thomas Vander Stichele <thomas at apestaart dot org>
 
* tests/check/elements/audioconvert.c: (verify_convert),
......
......@@ -879,9 +879,9 @@ gst_riff_create_audio_caps (guint16 codec_id,
guint32 subformat_guid[4];
const guint8 *data;
if (GST_BUFFER_SIZE (strf_data) != 22) {
if (strf_data == NULL || GST_BUFFER_SIZE (strf_data) != 22) {
GST_WARNING ("WAVE_FORMAT_EXTENSIBLE data size is %d (expected: 22)",
GST_BUFFER_SIZE (strf_data));
(strf_data) ? GST_BUFFER_SIZE (strf_data) : -1);
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment