DescriptionUse av_rescale_q() for converting FFmpeg timestamps to base::TimeDelta (second attempt).
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.
Second attempt since I forgot to manually resolve av_rescale_q() for unittests.
Patch Set 1 #
Total comments: 2
Messages
Total messages: 3 (0 generated)
|