diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-14 18:07:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-14 18:07:35 +0000 |
commit | 29fe1ea4b5a1d1fc1fb87b53866901357c04c5c1 (patch) | |
tree | 815e0a3c1225770e29b6e72d7005737d1c9e398d | |
parent | b1b1e303d93a5c67eedeca6ef3039be6cb4dc9f9 (diff) | |
parent | 9829344d526f87ca745208f04216ec795b239581 (diff) | |
download | frameworks_av-29fe1ea4b5a1d1fc1fb87b53866901357c04c5c1.zip frameworks_av-29fe1ea4b5a1d1fc1fb87b53866901357c04c5c1.tar.gz frameworks_av-29fe1ea4b5a1d1fc1fb87b53866901357c04c5c1.tar.bz2 |
am 9829344d: Merge "media: memset sizeof argument issues"
* commit '9829344d526f87ca745208f04216ec795b239581':
media: memset sizeof argument issues
-rw-r--r-- | media/common_time/utils.cpp | 2 | ||||
-rw-r--r-- | media/libmedia/mediaplayer.cpp | 2 | ||||
-rw-r--r-- | media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/media/common_time/utils.cpp b/media/common_time/utils.cpp index 6539171..91cf2fd 100644 --- a/media/common_time/utils.cpp +++ b/media/common_time/utils.cpp @@ -59,7 +59,7 @@ void serializeSockaddr(Parcel* p, const struct sockaddr_storage* addr) { } void deserializeSockaddr(const Parcel* p, struct sockaddr_storage* addr) { - memset(addr, 0, sizeof(addr)); + memset(addr, 0, sizeof(*addr)); addr->ss_family = p->readInt32(); switch(addr->ss_family) { diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp index 0f6d897..7a6f31d 100644 --- a/media/libmedia/mediaplayer.cpp +++ b/media/libmedia/mediaplayer.cpp @@ -654,7 +654,7 @@ status_t MediaPlayer::setRetransmitEndpoint(const char* addrString, return BAD_VALUE; } - memset(&mRetransmitEndpoint, 0, sizeof(&mRetransmitEndpoint)); + memset(&mRetransmitEndpoint, 0, sizeof(mRetransmitEndpoint)); mRetransmitEndpoint.sin_family = AF_INET; mRetransmitEndpoint.sin_addr = saddr; mRetransmitEndpoint.sin_port = htons(port); 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; |