matroskademux: Fix off-by-one when parsing multi-channel WavPack

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057>
This commit is contained in:
Sebastian Dröge 2024-09-30 16:33:39 +03:00 committed by GStreamer Marge Bot
parent c0dceda8e9
commit b7ad9a2c5d

View file

@ -3976,7 +3976,7 @@ gst_matroska_demux_add_wvpk_header (GstElement * element,
data += 4;
size -= 4;
while (size > 12) {
while (size >= 12) {
flags = GST_READ_UINT32_LE (data);
data += 4;
size -= 4;