Bug Fix: Fix FFmpeg reporting timestamps for DSD
Raw DSD is counting frames in bytes, not bits/samples, so it needs to be scaled up when dividing by the raw sample rate. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
e9b15bc269
commit
a9ce4f4eff
1 changed files with 1 additions and 1 deletions
|
@ -991,7 +991,7 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
|
|||
if(totalFrames && (framesRead + framesReadNow > totalFrames))
|
||||
framesReadNow = (int)(totalFrames - framesRead);
|
||||
|
||||
double streamTimestamp = (double)(framesRead) / frequency;
|
||||
double streamTimestamp = (double)(framesRead * (rawDSD ? 8UL : 1UL)) / frequency;
|
||||
|
||||
framesRead += framesReadNow;
|
||||
|
||||
|
|
Loading…
Reference in a new issue