Bug 846769 - OggReader::SeekBisection() should use granule end times, not start times. r=rillian
authorChris Pearce <cpearce@mozilla.com>
Mon, 29 Jul 2013 10:03:21 +1200
changeset 140281 2d7d821c792dc4f3e1bd40a0809af934c59e19a1
parent 140280 6558e79080bdbea49766afb22196592f2c4bfab4
child 140282 51d91b3220d99b704456954eb79fbe31cbbbfcdf
push id25023
push useremorley@mozilla.com
push dateMon, 29 Jul 2013 14:13:44 +0000
treeherdermozilla-central@8c89fe2a5c92 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrillian
bugs846769
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 846769 - OggReader::SeekBisection() should use granule end times, not start times. r=rillian
content/media/ogg/OggReader.cpp
--- a/content/media/ogg/OggReader.cpp
+++ b/content/media/ogg/OggReader.cpp
@@ -1655,17 +1655,17 @@ nsresult OggReader::SeekBisection(int64_
 #endif
           }
         }
 
         if (HasVideo() &&
             granulepos > 0 &&
             serial == mTheoraState->mSerial &&
             videoTime == -1) {
-          videoTime = mTheoraState->StartTime(granulepos);
+          videoTime = mTheoraState->Time(granulepos);
         }
 
         if (pageOffset + pageLength >= endOffset) {
           // Hit end of readable data.
           break;
         }
 
         if (!ReadOggPage(&page)) {