diff options
author | James Dong <jdong@google.com> | 2010-06-23 16:51:39 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-06-23 17:12:11 -0700 |
commit | 065d1aff96818df54456053f1574aec8a234d0de (patch) | |
tree | 25a56b897088dc0d984eddc5ecbd9df9a385f2be /media/libstagefright/include | |
parent | 2439a8d6d99864ba0c2d94f428e6c9ee258cdd45 (diff) | |
download | frameworks_av-065d1aff96818df54456053f1574aec8a234d0de.zip frameworks_av-065d1aff96818df54456053f1574aec8a234d0de.tar.gz frameworks_av-065d1aff96818df54456053f1574aec8a234d0de.tar.bz2 |
Fixed the software AAC encoder
Make sure that each input frame contains at least 1024 samples, as
required by the AAC encoder, and fix the incorrect timestamp.
Change-Id: I344cafe8c89be51d6e64552fab70539990ff6049
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/AACEncoder.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/media/libstagefright/include/AACEncoder.h b/media/libstagefright/include/AACEncoder.h index 211a332..ecc533f 100644 --- a/media/libstagefright/include/AACEncoder.h +++ b/media/libstagefright/include/AACEncoder.h @@ -52,6 +52,16 @@ class AACEncoder: public MediaSource { int32_t mChannels; int32_t mBitRate; int32_t mFrameCount; + + int64_t mAnchorTimeUs; + int64_t mNumInputSamples; + + enum { + kNumSamplesPerFrame = 1024, + }; + + int16_t mInputFrame[kNumSamplesPerFrame]; + uint8_t mAudioSpecificConfigData[2]; // auido specific data void *mEncoderHandle; VO_AUDIO_CODECAPI *mApiHandle; |