summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-14 18:01:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-04-14 18:01:24 +0000
commit9829344d526f87ca745208f04216ec795b239581 (patch)
tree84aef000929bcac9b87144e380e15587534f6e95 /media/libstagefright
parente523889332b88348e673137d272854278acbef8f (diff)
parentd6579cc9f06052f94bf5a2c34261c84de0efce23 (diff)
downloadframeworks_av-9829344d526f87ca745208f04216ec795b239581.zip
frameworks_av-9829344d526f87ca745208f04216ec795b239581.tar.gz
frameworks_av-9829344d526f87ca745208f04216ec795b239581.tar.bz2
Merge "media: memset sizeof argument issues"
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
index 9a5828d..89f0fed 100644
--- a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
+++ b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
@@ -217,7 +217,7 @@ OMX_ERRORTYPE SoftAVCEncoder::initEncParams() {
mHandle->CBAVC_Free = FreeWrapper;
CHECK(mEncParams != NULL);
- memset(mEncParams, 0, sizeof(mEncParams));
+ memset(mEncParams, 0, sizeof(*mEncParams));
mEncParams->rate_control = AVC_ON;
mEncParams->initQP = 0;
mEncParams->init_CBP_removal_delay = 1600;