From 4652460aff1b95a381c617c548e3c911c5e55eb2 Mon Sep 17 00:00:00 2001 From: bnnm Date: Tue, 4 Sep 2018 17:51:34 +0200 Subject: [PATCH] Add extra validation in vgmstream_open_stream --- src/vgmstream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vgmstream.c b/src/vgmstream.c index eaef48fc..8a9751be 100644 --- a/src/vgmstream.c +++ b/src/vgmstream.c @@ -2618,7 +2618,9 @@ int vgmstream_open_stream(VGMSTREAM * vgmstream, STREAMFILE *streamFile, off_t s return 1; /* stream/offsets not needed, managed by decoder */ - if (vgmstream->coding_type == coding_NWA) + if (vgmstream->coding_type == coding_NWA || + vgmstream->coding_type == coding_ACM || + vgmstream->coding_type == coding_CRI_HCA) return 1; #ifdef VGM_USE_FFMPEG