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 <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-04-25 13:19:12 -07:00
parent 2995f67c56
commit 5a47021f6d
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@
ancillaryBitsRemaining -= 32;
if('LAME' == magic) {
if('LAME' == magic || 'Lavf' == magic || 'Lavc' == magic) {
if(LAME_HEADER_SIZE > ancillaryBitsRemaining)
continue;