Fix seeking near the start of saved live streams.
authorTimothy B. Terriberry <tterribe@xiph.org>
Tue, 7 May 2013 03:07:48 +0000 (20:07 -0700)
committerTimothy B. Terriberry <tterribe@xiph.org>
Tue, 7 May 2013 03:07:48 +0000 (20:07 -0700)
commit2862e2eaf4d655d6aaa358f8dc76068f4f49a1fb
tree9c9c917b1687ec1250713e0735d5f136c0f859fd
parent14da0dd29b05dc4772f124bc386d576d0f323ff6
Fix seeking near the start of saved live streams.

If a stream starts with a non-zero granpos, we would subtract 80 ms
 from the target time, and then report failure when the best page
 we could find (the first page in the link) had a granpos larger
 than that.
This worked for normal streams because the subtraction would fail
 (granpos can't wrap past -1) and we checked for that.
src/opusfile.c