[FFmpeg Input] Do not subtract first block length
This is an unnecessary step, and results in the offset being off by the duration of the first pre-read block. This is incorrect. Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
59d54f3190
commit
bb307a64b6
|
@ -688,8 +688,6 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
|
||||||
|
|
||||||
if(prebufferedChunk) {
|
if(prebufferedChunk) {
|
||||||
// A bit of ignored read-ahead to support embedded artwork
|
// A bit of ignored read-ahead to support embedded artwork
|
||||||
size_t framesReadNow = prebufferedChunk.frameCount;
|
|
||||||
framesRead -= framesReadNow;
|
|
||||||
AudioChunk *chunk = prebufferedChunk;
|
AudioChunk *chunk = prebufferedChunk;
|
||||||
prebufferedChunk = nil;
|
prebufferedChunk = nil;
|
||||||
return chunk;
|
return chunk;
|
||||||
|
|
Loading…
Reference in New Issue