MAD Input: Fix seeking backwards and in general

A backwards comparison led to seeking forward doing a full seek up from
the file start, and seeking backwards being a non-functional operation,
so the file would just continue playing as if there were no seek.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2022-04-01 19:34:54 -07:00
parent 69ebce32c0
commit 2ed463034f

View file

@ -691,7 +691,7 @@
framesToSkip = 0; framesToSkip = 0;
if(frame > _framesDecoded) { if(frame < _framesDecoded) {
_framesDecoded = 0; _framesDecoded = 0;
_firstFrame = YES; _firstFrame = YES;
if(_foundLAMEHeader || _foundiTunSMPB) if(_foundLAMEHeader || _foundiTunSMPB)