From 28d584950557ba321ce7615f5af48ec1cdebb985 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 21 Jul 2022 03:54:08 -0700 Subject: [PATCH] [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 --- Plugins/FFMPEG/FFMPEGDecoder.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/Plugins/FFMPEG/FFMPEGDecoder.m b/Plugins/FFMPEG/FFMPEGDecoder.m index 7c84125b1..73fd7c032 100644 --- a/Plugins/FFMPEG/FFMPEGDecoder.m +++ b/Plugins/FFMPEG/FFMPEGDecoder.m @@ -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;