From 06c8ab1b3f6509f69b29a1a0b96081ae9d950375 Mon Sep 17 00:00:00 2001 From: bnnm Date: Wed, 22 Aug 2018 20:43:19 +0200 Subject: [PATCH] Remove bik2a/bk2a fake extensions since they aren't used --- src/formats.c | 2 -- src/meta/bik.c | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/formats.c b/src/formats.c index f5eccb4b..cb7de7e7 100644 --- a/src/formats.c +++ b/src/formats.c @@ -79,9 +79,7 @@ static const char* extension_list[] = { "bik", "bika", "bik2", - "bik2a", "bk2", - "bk2a", "bmdx", "bms", "bnk", diff --git a/src/meta/bik.c b/src/meta/bik.c index 18a3996d..eecff1f0 100644 --- a/src/meta/bik.c +++ b/src/meta/bik.c @@ -12,8 +12,11 @@ VGMSTREAM * init_vgmstream_bik(STREAMFILE *streamFile) { size_t stream_size; - /* check extension, case insensitive (bika = manually demuxed audio) */ - if (!check_extensions(streamFile,"bik,bika,bik2,bik2a,bk2,bk2a")) goto fail; + /* checks */ + /* .bik/bik2/bk2: standard + * .bika = fake extension for demuxed audio */ + if (!check_extensions(streamFile,"bik,bika,bik2,bk2")) + goto fail; /* check header "BIK" (bink 1) or "KB2" (bink 2), followed by version-char (audio is the same for both) */ if ((read_32bitBE(0x00,streamFile) & 0xffffff00) != 0x42494B00 &&