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>
This commit is contained in:
parent
36d2d7b7e0
commit
299cc5a406
1 changed files with 6 additions and 0 deletions
|
@ -695,6 +695,12 @@
|
||||||
|
|
||||||
framesToSkip = 0;
|
framesToSkip = 0;
|
||||||
|
|
||||||
|
if(_foundLAMEHeader || _foundiTunSMPB) {
|
||||||
|
if(_framesDecoded < _startPadding) {
|
||||||
|
framesToSkip = _startPadding;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(frame < _framesDecoded) {
|
if(frame < _framesDecoded) {
|
||||||
_framesDecoded = 0;
|
_framesDecoded = 0;
|
||||||
_firstFrame = YES;
|
_firstFrame = YES;
|
||||||
|
|
Loading…
Reference in a new issue