VIDEO: Fix QuickTime timing when seeking without audio (thanks bgK)

svn-id: r55211
This commit is contained in:
Matthew Hoops 2011-01-11 21:33:23 +00:00
parent 55c0658c8d
commit 0f04b4609c

View File

@ -177,7 +177,7 @@ void QuickTimeDecoder::seekToFrame(uint32 frame) {
}
// Adjust the video starting point
_startTime = g_system->getMillis() - _nextFrameStartTime;
_startTime = g_system->getMillis() - Graphics::VideoTimestamp(_nextFrameStartTime, _streams[_videoStreamIndex]->time_scale).getUnitsInScale(1000);
// Adjust the audio starting point
if (_audioStreamIndex >= 0) {