Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2013-08-30 17:17:17 +0400
committerAlex Marsev <alex.marsev@gmail.com>2013-08-30 17:17:17 +0400
commit279d29036e1e643bd3e806ed211d7cddea0f29d7 (patch)
tree380e3fd905d51a8bee78094f89e5aff57e228327 /src
parent379a9d9c931edd690d9554436634d9c9075dff6b (diff)
MainFrm: remove seek-on-keyframe legacy hack
It breaks accurate keyframe seeking in LAV
Diffstat (limited to 'src')
-rw-r--r--src/mpc-hc/MainFrm.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mpc-hc/MainFrm.cpp b/src/mpc-hc/MainFrm.cpp
index b125184cb..48ab2a02c 100644
--- a/src/mpc-hc/MainFrm.cpp
+++ b/src/mpc-hc/MainFrm.cpp
@@ -10637,12 +10637,6 @@ void CMainFrame::OpenFile(OpenFileData* pOFD)
if (FAILED(pKFI->GetKeyFrames(&TIME_FORMAT_MEDIA_TIME, m_kfs.data(), k)) || k != nKFs) {
m_kfs.clear();
}
- for (auto it = m_kfs.begin(); it != m_kfs.end(); ++it) {
- // HACK: if d3d or something changes fpu control word the values of
- // m_kfs may be different now (if it was asked again), adding a little
- // to the seek position eliminates this error usually.
- *it += 10;
- }
}
SetPlaybackMode(PM_FILE);