FFmpeg Input: Fix stream timestamps
Stream timestamps were correctly being converted from the monotonically increasing frame count, but the AudioChunk parameter was being set from the frame count rather than the converted seconds count. Fixes #418 Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
3ed6e8a6b9
commit
d2284df683
1 changed files with 1 additions and 1 deletions
|
@ -933,7 +933,7 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
|
|||
|
||||
id audioChunkClass = NSClassFromString(@"AudioChunk");
|
||||
AudioChunk *chunk = [[audioChunkClass alloc] initWithProperties:[self properties]];
|
||||
[chunk setStreamTimestamp:framesRead];
|
||||
[chunk setStreamTimestamp:streamTimestamp];
|
||||
[chunk assignSamples:sampleBuffer frameCount:framesReadNow];
|
||||
|
||||
return chunk;
|
||||
|
|
Loading…
Reference in a new issue