mirror of https://github.com/mstorsjo/fdk-aac.git
Check that the SBR decoder has been properly initialized
This probably doesn't fix the root cause, but at least fixes the issues found in this particular fuzzed sample. Fixes: 1994/clusterfuzz-testcase-minimized-6368089497141248 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
This commit is contained in:
parent
39e13c1acb
commit
e7f36eed22
|
@ -940,6 +940,10 @@ resetSbrDec (HANDLE_SBR_DEC hSbrDec,
|
|||
FIXP_DBL **OverlapBufferReal = hSbrDec->QmfBufferReal;
|
||||
FIXP_DBL **OverlapBufferImag = hSbrDec->QmfBufferImag;
|
||||
|
||||
if (!hSbrDec->LppTrans.pSettings) {
|
||||
return SBRDEC_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
/* assign qmf time slots */
|
||||
assignTimeSlots( hSbrDec, hHeaderData->numberTimeSlots * hHeaderData->timeStep, useLP);
|
||||
|
||||
|
|
Loading…
Reference in New Issue