ref: 73909d7d72d83bc9217596dc38b822b83237cc42
parent: 3abc35411d0a4a54f1e9983345d77c7ca1b86bd5
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Sun Jul 3 14:10:16 EDT 2016
Note small inaccuracy in bitrate tracking. In the non-seekable case, we'll undercount some bytes at the start of a new link. Still thinking about the best way to address this, but leaving a comment so I don't forget.
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -1931,7 +1931,9 @@
/*If we didn't get any packets out of op_find_initial_pcm_offset(),
keep going (this is possible if end-trimming trimmed them all).*/
if(_of->op_count<=0)continue;
- /*Otherwise, we're done.*/
+ /*Otherwise, we're done.
+ TODO: This resets bytes_tracked, which misses the header bytes
+ already processed by op_find_initial_pcm_offset().*/
ret=op_make_decode_ready(_of);
if(OP_UNLIKELY(ret<0))return ret;
return 0;