[MAD Input] Initialize state variable, fix crash

This should prevent a crash if the input is recycled for another file,
which would cause the output buffer to be freed, but the output size to
contain a count on first call to readAudio, which would cause a memory
access crash.

Possibly fixes #269

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-11 14:21:18 -07:00
parent 90b83f8f51
commit 854431b784
1 changed files with 1 additions and 0 deletions

View File

@ -387,6 +387,7 @@
mad_synth_init(&_synth);
_firstFrame = YES;
_outputFrames = 0;
// DLog(@"OPEN: %i", _firstFrame);
inputEOF = NO;