MAD Input: Possible further fix for seeking

This is a possible fix for another gap issue I experienced, and may be
exposed by seeking from the start of the file without decoding first.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-04-19 23:19:52 -07:00
parent 36d2d7b7e0
commit 299cc5a406
1 changed files with 6 additions and 0 deletions

View File

@ -695,6 +695,12 @@
framesToSkip = 0;
if(_foundLAMEHeader || _foundiTunSMPB) {
if(_framesDecoded < _startPadding) {
framesToSkip = _startPadding;
}
}
if(frame < _framesDecoded) {
_framesDecoded = 0;
_firstFrame = YES;