diff --git a/Plugins/MAD/MADDecoder.m b/Plugins/MAD/MADDecoder.m index 3142d32c7..ac5199cd9 100644 --- a/Plugins/MAD/MADDecoder.m +++ b/Plugins/MAD/MADDecoder.m @@ -163,7 +163,8 @@ if(end_pad >= 528 + 1) { _startPadding = start_pad + 528 + 1; _endPadding = end_pad - (528 + 1); - totalFrames = temp_duration; + // iTunes encodes the original length of the file here + totalFrames = temp_duration + _startPadding + _endPadding; _foundiTunSMPB = YES; } }