Skip to content

Commit

Permalink
Fix: correct millisecond value in SaveImage filename
Browse files Browse the repository at this point in the history
  • Loading branch information
clsid2 committed Sep 17, 2018
1 parent 9edb469 commit 9e43b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mpc-hc/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4952,10 +4952,10 @@ CString CMainFrame::GetVidPos() const
DVD_HMSF_TIMECODE tcNow = RT2HMSF(pos);
DVD_HMSF_TIMECODE tcDur = RT2HMSF(stop);

if (tcDur.bHours > 0 || (pos >= stop && tcNow.bHours > 0)) {
posstr.Format(_T("%02u.%02u.%02u.%03u"), tcNow.bHours, tcNow.bMinutes, tcNow.bSeconds, pos % 1000);
if (tcDur.bHours > 0 || tcNow.bHours > 0) {
posstr.Format(_T("%02u.%02u.%02u.%03u"), tcNow.bHours, tcNow.bMinutes, tcNow.bSeconds, (pos / 10000) % 1000);
} else {
posstr.Format(_T("%02u.%02u.%03u"), tcNow.bMinutes, tcNow.bSeconds, pos % 1000);
posstr.Format(_T("%02u.%02u.%03u"), tcNow.bMinutes, tcNow.bSeconds, (pos / 10000) % 1000);
}
}

Expand Down

0 comments on commit 9e43b96

Please sign in to comment.