summaryrefslogtreecommitdiff
path: root/libs/utils/Threads.cpp
diff options
context:
space:
mode:
author James Dong <jdong@google.com> 2010-09-01 18:48:35 -0700
committer James Dong <jdong@google.com> 2010-09-01 20:45:39 -0700
commit4c23815c3986e50f0cfad3976d748e600f1befa2 (patch)
tree839a922dfe31849499ed1989ad6723a7700d4ae2 /libs/utils/Threads.cpp
parent3424c02e6b931a8bbd651ae75217bebd008b2605 (diff)
Calculate audio media drift time from AudioSource
The problem was that the time to receive an output buffer from an audio encoder is different because the encoder does not need to read from the source for all output buffers. This leads to large fluctuation in terms of wall clock duration between two neighboring audio sample outputs from the audio encoder. As a result, the media time for the video track after adjustment using the drifting changes wildly sometimes. This patch addresses this issue by only updating the media drift time when an audio source input buffer is read. the wall clock for the audio track is also calculated at the same time when the input audio buffer is read at AudioSource. bug - 2959800 Change-Id: I3174aa182f744784b540f0a7198524d4eee8bd7b
Diffstat (limited to 'libs/utils/Threads.cpp')
0 files changed, 0 insertions, 0 deletions