![](https://secure.gravatar.com/avatar/59bffa8d29505a5951521a2fd09a4fd9.jpg?s=120&d=mm&r=g)
10 Apr
2013
10 Apr
'13
5:55 a.m.
On 4/8/13 6:20 PM, Dylan Reid wrote:
For playback add the codec-side delay to the timestamp, for capture subtract it. This brings the timestamps in line with the time that was recently added to the delay reporting.
Signed-off-by: Dylan Reid dgreid@chromium.org
Changes since v1: Calculate nsec from frames, subtract delay for playback as well as capture.
- return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0;
Is this correct? I would think for capture you need to add the delay, and subtract it for playback? -Pierre