diff options
author | Wei Jia <wjia@google.com> | 2015-08-18 11:34:57 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2015-08-18 11:34:57 -0700 |
commit | 595fede0cf7b53b4d3f51d72df8d66fd7ff14d1c (patch) | |
tree | 18890501f6a315fd1cdb7e0f76267e74a19ab187 | |
parent | 39ff8149466ee8e86c0336f706cd4dd3713f359f (diff) | |
download | frameworks_av-595fede0cf7b53b4d3f51d72df8d66fd7ff14d1c.zip frameworks_av-595fede0cf7b53b4d3f51d72df8d66fd7ff14d1c.tar.gz frameworks_av-595fede0cf7b53b4d3f51d72df8d66fd7ff14d1c.tar.bz2 |
libstagefright: fix overflow in SoftAVCEnc.
Bug: 20674674
Change-Id: I8e320218180926d46d223cb72523118079f72342
-rw-r--r-- | media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp b/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp index 26568ab..6e55034 100644 --- a/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp +++ b/media/libstagefright/codecs/avcenc/SoftAVCEnc.cpp @@ -639,7 +639,7 @@ OMX_ERRORTYPE SoftAVC::initEncoder() { free(mConversionBuffers[i]); } - if (((uint64_t)mStride * mHeight) > (((uint64_t)INT32_MAX / 3) * 2)) { + if (((uint64_t)mStride * mHeight) > ((uint64_t)INT32_MAX / 3)) { ALOGE("Buffer size is too big."); return OMX_ErrorUndefined; } |