diff options
author | Marco Nelissen <marcone@google.com> | 2016-04-05 14:20:11 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-04-21 19:09:56 -0700 |
commit | dd3546765710ce8dd49eb23901d90345dec8282f (patch) | |
tree | 126330cf58b84892d4d4690b9d82fd49d5a43744 /media | |
parent | ad40e57890f81a3cf436c5f06da66396010bd9e5 (diff) | |
download | frameworks_av-dd3546765710ce8dd49eb23901d90345dec8282f.zip frameworks_av-dd3546765710ce8dd49eb23901d90345dec8282f.tar.gz frameworks_av-dd3546765710ce8dd49eb23901d90345dec8282f.tar.bz2 |
AudioSource: initialize variables
to prevent info leak
Bug: 27855172
Change-Id: I3d33e0a9cc5cf8a758d7b0794590b09c43a24561
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/AudioSource.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/AudioSource.cpp b/media/libstagefright/AudioSource.cpp index 6e4a1dd..55f4361 100644 --- a/media/libstagefright/AudioSource.cpp +++ b/media/libstagefright/AudioSource.cpp @@ -55,8 +55,12 @@ AudioSource::AudioSource( : mStarted(false), mSampleRate(sampleRate), mOutSampleRate(outSampleRate > 0 ? outSampleRate : sampleRate), + mTrackMaxAmplitude(false), + mStartTimeUs(0), + mMaxAmplitude(0), mPrevSampleTimeUs(0), mFirstSampleTimeUs(-1ll), + mInitialReadTimeUs(0), mNumFramesReceived(0), mNumClientOwnedBuffers(0) { ALOGV("sampleRate: %u, outSampleRate: %u, channelCount: %u", |