diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2016-12-18 12:21:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-18 12:21:46 +0100 |
commit | 9c5de8e6c8a6ae68401923b44f9baa29fbdbaa68 (patch) | |
tree | 8e5b07d4003720f28d91502ad5752db4134793b9 | |
parent | d8429cb710b82e05a99b4762c295ab48b7d5b00c (diff) | |
parent | 5c443a72f53fe3d98861a885b27d0bbdb3defcd8 (diff) |
Merge pull request #11193 from popcornmix/dvdmenupts
VideoPlayer: Don't add timestamp offsets to DVD_NOPTS_VALUE
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index bb80b836b9..6d373e6af7 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -1610,9 +1610,9 @@ void CVideoPlayer::Process() if (CDVDInputStream::IMenus* menu = dynamic_cast<CDVDInputStream::IMenus*>(m_pInputStream)) { double correction = menu->GetTimeStampCorrection(); - if (pPacket->dts > correction) + if (pPacket->dts != DVD_NOPTS_VALUE && pPacket->dts > correction) pPacket->dts -= correction; - if (pPacket->pts > correction) + if (pPacket->pts != DVD_NOPTS_VALUE && pPacket->pts > correction) pPacket->pts -= correction; } if (m_dvd.syncClock) |