[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
Christopher Snowhill 2022-07-21 03:54:08 -07:00
parent 81d31dbe58
commit 28d5849505
1 changed files with 0 additions and 2 deletions

View File

@ -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;