Reject some formats in ffmpeg.c

This commit is contained in:
bnnm 2021-06-20 17:31:36 +02:00
parent 80401dba38
commit 6d3a9a52d6

View File

@ -35,6 +35,10 @@ VGMSTREAM* init_vgmstream_ffmpeg(STREAMFILE* sf) {
if (get_streamfile_size(sf) <= 0x1000)
goto fail;
/* reject some formats handled elsewhere (better fail and check there than let buggy FFmpeg take over) */
if (check_extensions(sf, "at3"))
goto fail;
if (target_subsong == 0) target_subsong = 1;
/* init ffmpeg */