summaryrefslogtreecommitdiffstats
path: root/third_party/ffmpeg
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 20:05:07 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 20:05:07 +0000
commit1be621f1d1df8231a02e12d8a0b49c0910660469 (patch)
treed28ce5c03db17487606dbf60a4a64fd14240a366 /third_party/ffmpeg
parenta5d8fac6d37dec61810f55c6f49790644053e88f (diff)
downloadchromium_src-1be621f1d1df8231a02e12d8a0b49c0910660469.zip
chromium_src-1be621f1d1df8231a02e12d8a0b49c0910660469.tar.gz
chromium_src-1be621f1d1df8231a02e12d8a0b49c0910660469.tar.bz2
Use 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. Review URL: http://codereview.chromium.org/113619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/ffmpeg')
-rw-r--r--third_party/ffmpeg/avutil-50.def1
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