From 5a47021f6d11d8a26b77c4bf18c726da1af3c540 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 25 Apr 2022 13:19:12 -0700 Subject: [PATCH] MAD Input: Fix gapless decoding of FFmpeg files FFmpeg processed files may also contain the LAME tag magic of 'Lavf' or 'Lavc', not just 'LAME'. Missed this when I was maintaining the FFmpeg code that handles this, or at least adding iTunes support to it. Fixes #250 again. Signed-off-by: Christopher Snowhill --- Plugins/MAD/MADDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/MAD/MADDecoder.m b/Plugins/MAD/MADDecoder.m index 69e2e7d48..5fd1fced6 100644 --- a/Plugins/MAD/MADDecoder.m +++ b/Plugins/MAD/MADDecoder.m @@ -303,7 +303,7 @@ ancillaryBitsRemaining -= 32; - if('LAME' == magic) { + if('LAME' == magic || 'Lavf' == magic || 'Lavc' == magic) { if(LAME_HEADER_SIZE > ancillaryBitsRemaining) continue;