diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 01:17:14 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 01:17:14 +0000 |
commit | f72f38623b7a32e7ba8c92f4a6d98d05fc51c311 (patch) | |
tree | 90aed0b30067c9c798a8d6850307476df9b93209 /chrome/worker/worker_webkitclient_impl.h | |
parent | 597dbf7d2957462aa97c4cbd4ba28266d948d9b3 (diff) | |
download | chromium_src-f72f38623b7a32e7ba8c92f4a6d98d05fc51c311.zip chromium_src-f72f38623b7a32e7ba8c92f4a6d98d05fc51c311.tar.gz chromium_src-f72f38623b7a32e7ba8c92f4a6d98d05fc51c311.tar.bz2 |
Use 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.
Review URL: http://codereview.chromium.org/113598
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/worker_webkitclient_impl.h')
0 files changed, 0 insertions, 0 deletions