mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-09 14:13:50 +01:00
Encoder returned an error while explicit flushing
Bug: 112663571 Test: atest EncoderTest Change-Id: Ieaaaf2c32786a8344ba912f4587298654d508e67
This commit is contained in:
parent
f59fd73d44
commit
2aa9167aa6
@ -1733,9 +1733,10 @@ AACENC_ERROR aacEncEncode(const HANDLE_AACENCODER hAacEncoder,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check if buffer descriptors are filled out properly. */
|
/* check if buffer descriptors are filled out properly. */
|
||||||
if ((AACENC_OK != validateBufDesc(inBufDesc)) ||
|
if ((inargs == NULL) || (outargs == NULL) ||
|
||||||
(AACENC_OK != validateBufDesc(outBufDesc)) || (inargs == NULL) ||
|
((AACENC_OK != validateBufDesc(inBufDesc)) &&
|
||||||
(outargs == NULL)) {
|
(inargs->numInSamples > 0)) ||
|
||||||
|
(AACENC_OK != validateBufDesc(outBufDesc))) {
|
||||||
err = AACENC_UNSUPPORTED_PARAMETER;
|
err = AACENC_UNSUPPORTED_PARAMETER;
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user