mirror of https://github.com/mstorsjo/fdk-aac.git
Add parameter pointer check to aacEncInfo() encoder API function. am: c2416f5e93
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/aac/+/14471062 Change-Id: I9e1cb5ba113f5df4df76be7e1bee5e2cbdd8ccca
This commit is contained in:
commit
1cf293e454
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
Software License for The Fraunhofer FDK AAC Codec Library for Android
|
Software License for The Fraunhofer FDK AAC Codec Library for Android
|
||||||
|
|
||||||
© Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten
|
© Copyright 1995 - 2021 Fraunhofer-Gesellschaft zur Förderung der angewandten
|
||||||
Forschung e.V. All rights reserved.
|
Forschung e.V. All rights reserved.
|
||||||
|
|
||||||
1. INTRODUCTION
|
1. INTRODUCTION
|
||||||
|
@ -1643,7 +1643,7 @@ AACENC_ERROR aacEncEncode(const HANDLE_AACENCODER hAacEncoder,
|
||||||
*
|
*
|
||||||
* \return
|
* \return
|
||||||
* - AACENC_OK, on succes.
|
* - AACENC_OK, on succes.
|
||||||
* - AACENC_INIT_ERROR, on failure.
|
* - AACENC_INVALID_HANDLE, AACENC_INIT_ERROR, on failure.
|
||||||
*/
|
*/
|
||||||
AACENC_ERROR aacEncInfo(const HANDLE_AACENCODER hAacEncoder,
|
AACENC_ERROR aacEncInfo(const HANDLE_AACENCODER hAacEncoder,
|
||||||
AACENC_InfoStruct *pInfo);
|
AACENC_InfoStruct *pInfo);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
Software License for The Fraunhofer FDK AAC Codec Library for Android
|
Software License for The Fraunhofer FDK AAC Codec Library for Android
|
||||||
|
|
||||||
© Copyright 1995 - 2020 Fraunhofer-Gesellschaft zur Förderung der angewandten
|
© Copyright 1995 - 2021 Fraunhofer-Gesellschaft zur Förderung der angewandten
|
||||||
Forschung e.V. All rights reserved.
|
Forschung e.V. All rights reserved.
|
||||||
|
|
||||||
1. INTRODUCTION
|
1. INTRODUCTION
|
||||||
|
@ -2521,6 +2521,11 @@ AACENC_ERROR aacEncInfo(const HANDLE_AACENCODER hAacEncoder,
|
||||||
AACENC_InfoStruct *pInfo) {
|
AACENC_InfoStruct *pInfo) {
|
||||||
AACENC_ERROR err = AACENC_OK;
|
AACENC_ERROR err = AACENC_OK;
|
||||||
|
|
||||||
|
if ((hAacEncoder == NULL) || (pInfo == NULL)) {
|
||||||
|
err = AACENC_INVALID_HANDLE;
|
||||||
|
goto bail;
|
||||||
|
}
|
||||||
|
|
||||||
FDKmemclear(pInfo, sizeof(AACENC_InfoStruct));
|
FDKmemclear(pInfo, sizeof(AACENC_InfoStruct));
|
||||||
pInfo->confSize = 64; /* pre-initialize */
|
pInfo->confSize = 64; /* pre-initialize */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue