New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix seeking with PTS values exceeding max int #12442
Conversation
xbmc/cores/VideoPlayer/Edl.cpp
Outdated
@@ -770,16 +770,16 @@ int CEdl::RemoveCutTime(int iSeek) const | |||
return iSeek - iCutTime; | |||
} | |||
|
|||
int CEdl::RestoreCutTime(int iClock) const | |||
double CEdl::RestoreCutTime(double iClock) const |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
b2d953c
to
d5aeb24
Compare
xbmc/cores/VideoPlayer/Edl.cpp
Outdated
if (m_vecCuts[i].action == CUT && iSeek >= m_vecCuts[i].start) | ||
iSeek += m_vecCuts[i].end - m_vecCuts[i].start; | ||
if (m_vecCuts[i].action == CUT && dSeek >= m_vecCuts[i].start) | ||
dSeek += (double)m_vecCuts[i].end - (double)m_vecCuts[i].start; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
d5aeb24
to
b67d0aa
Compare
b67d0aa
to
ea16676
Compare
jenkins build this please |
This is a follow up to #12086
I found some additional places where double got pushed into an int.