mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Add extra validation in vgmstream_open_stream
This commit is contained in:
parent
7ad7d3d47b
commit
4652460aff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user