wavparse: Don't fail if more data then needed is available when parsing cue chunks

Fixes bug #680328.
This commit is contained in:
Sebastian Dröge 2012-07-23 09:25:23 +02:00
parent e7977d2d64
commit cbf3c2bac0

View file

@ -1172,8 +1172,8 @@ gst_wavparse_cue_chunk (GstWavParse * wav, const guint8 * data, guint32 size)
ncues = GST_READ_UINT32_LE (data);
if (size != 4 + ncues * 24) {
GST_WARNING_OBJECT (wav, "broken file");
if (size < 4 + ncues * 24) {
GST_WARNING_OBJECT (wav, "broken file %d %d", size, ncues);
return FALSE;
}