DescriptionUse av_rescale_q() for converting FFmpeg timestamps to base::TimeDelta.
Previously we were using integer math to convert to microseconds, but depending on the frame rate and packet size we could introduce enough error that could accumulate and introduce audio/video synchronization drift. av_rescale_q() is a simple function but is designed to minimize error as much as possible.
Patch Set 1 #
Total comments: 3
Patch Set 2 : git try #
Total comments: 1
Patch Set 3 : Tweaksd #
Messages
Total messages: 6 (0 generated)
|