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 /third_party/ffmpeg | |
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 'third_party/ffmpeg')
-rw-r--r-- | third_party/ffmpeg/avutil-50.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/ffmpeg/avutil-50.def b/third_party/ffmpeg/avutil-50.def index 23bb5db..79e5ddc 100644 --- a/third_party/ffmpeg/avutil-50.def +++ b/third_party/ffmpeg/avutil-50.def @@ -2,3 +2,4 @@ LIBRARY avutil-50 EXPORTS av_free av_malloc + av_rescale_q |