diff options
author | James Dong <jdong@google.com> | 2012-02-14 14:58:20 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-02-15 12:54:17 -0800 |
commit | b575ddce78d266fa218006f90306158dda5c8f56 (patch) | |
tree | b60d95b1f2b8cd5130e8ec6e1aef4f617d6076ca /include | |
parent | 7a8b0ed6419e57dd8b41d3806893d63d3df91aab (diff) | |
download | frameworks_av-b575ddce78d266fa218006f90306158dda5c8f56.zip frameworks_av-b575ddce78d266fa218006f90306158dda5c8f56.tar.gz frameworks_av-b575ddce78d266fa218006f90306158dda5c8f56.tar.bz2 |
Limit the amount of audio record data in each buffer
o The size of each input buffer should be less than or equal to kMaxBufferSize
o related-to-bug: 5977032
Change-Id: I04343169aac3df56694aad4ba7967ec45337ad7e
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/AudioSource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/AudioSource.h b/include/media/stagefright/AudioSource.h index 79437bf..f5466e8 100644 --- a/include/media/stagefright/AudioSource.h +++ b/include/media/stagefright/AudioSource.h @@ -95,6 +95,7 @@ private: int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes); + void queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs); void releaseQueuedFrames_l(); void waitOutstandingEncodingFrames_l(); status_t reset(); |