mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-20 04:50:43 +01:00
Merge "Encoder returned an error while explicit flushing" am: 2f5612ef84
am: a98beef0cf Change-Id: Ie8198a53d1666d97ae586c9984b8ffcdb6c528c7
This commit is contained in:
commit
d145d90619
@ -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…
x
Reference in New Issue
Block a user