Commit 0a523700 authored by Committed by Ralph Giles
Fix Opus timestamps
Implement reverse timestamp calculation for Opus (fixes calculated timestamps on first page), and correct for pre-skip and end trimming. Signed-off-by: Ralph Giles <email@example.com> Reviewer note: Pretty sure we can make queued_duration overflow by feeding it a long stream of pages without proper granulepos. I decided not to worry about it; the caller will get unexpected nonesense, but the stream is also invalid. Just wanted to note the issue for future reference.
Showing with 41 additions and 4 deletions