diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2018-12-26 18:45:13 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-26 18:45:13 -0800 |
commit | 6a506100ee6609bdacf2d1b13ac4a50598e30a8e (patch) | |
tree | f411a5d95e146fd08de0bd1f0e4914320ebc0700 | |
parent | 58600c035a18bba6ad5956be9c224bcb0eefa9db (diff) | |
parent | d145d90619598cdcd441c18505a1b79d0300eff2 (diff) | |
download | fdk-aac-6a506100ee6609bdacf2d1b13ac4a50598e30a8e.tar.gz fdk-aac-6a506100ee6609bdacf2d1b13ac4a50598e30a8e.tar.bz2 fdk-aac-6a506100ee6609bdacf2d1b13ac4a50598e30a8e.zip |
Merge "Encoder returned an error while explicit flushing" am: 2f5612ef84 am: a98beef0cf
am: d145d90619
Change-Id: Ic018092c0fc9f5f2ec422f29f1323ed514b53803
-rw-r--r-- | libAACenc/src/aacenc_lib.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libAACenc/src/aacenc_lib.cpp b/libAACenc/src/aacenc_lib.cpp index 11db3da..f92cff4 100644 --- a/libAACenc/src/aacenc_lib.cpp +++ b/libAACenc/src/aacenc_lib.cpp @@ -1733,9 +1733,10 @@ AACENC_ERROR aacEncEncode(const HANDLE_AACENCODER hAacEncoder, } /* check if buffer descriptors are filled out properly. */ - if ((AACENC_OK != validateBufDesc(inBufDesc)) || - (AACENC_OK != validateBufDesc(outBufDesc)) || (inargs == NULL) || - (outargs == NULL)) { + if ((inargs == NULL) || (outargs == NULL) || + ((AACENC_OK != validateBufDesc(inBufDesc)) && + (inargs->numInSamples > 0)) || + (AACENC_OK != validateBufDesc(outBufDesc))) { err = AACENC_UNSUPPORTED_PARAMETER; goto bail; } |