Commit cbf3c2ba authored by Sebastian Dröge's avatar Sebastian Dröge

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

Fixes bug #680328.
parent e7977d2d
......@@ -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;
}
......
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