[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>xcode15
parent
81d31dbe58
commit
28d5849505
|
@ -688,8 +688,6 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
|
|||
|
||||
if(prebufferedChunk) {
|
||||
// A bit of ignored read-ahead to support embedded artwork
|
||||
size_t framesReadNow = prebufferedChunk.frameCount;
|
||||
framesRead -= framesReadNow;
|
||||
AudioChunk *chunk = prebufferedChunk;
|
||||
prebufferedChunk = nil;
|
||||
return chunk;
|
||||
|
|
Loading…
Reference in New Issue