mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
wavparse: Don't fail if more data then needed is available when parsing cue chunks
Fixes bug #680328.
This commit is contained in:
parent
e7977d2d64
commit
cbf3c2bac0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue