diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-01-12 21:53:43 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-01-12 21:57:15 +0400 |
commit | c39385f5980cec69a48d05e1c018a5e900965e82 (patch) | |
tree | e511d1eec49e6b5dd4fbd8b9aca02115adfb7190 /decoder | |
parent | 56a9626aed41e367abb2989704597ef3c6e19f3e (diff) |
Support reverse scrub playback for DVDs
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp index 7c67e73a..98d769c3 100644 --- a/decoder/LAVVideo/LAVVideo.cpp +++ b/decoder/LAVVideo/LAVVideo.cpp @@ -1616,9 +1616,9 @@ HRESULT CLAVVideo::DeliverToRenderer(LAVFrame *pFrame) if (GetDecodeFlags() & LAV_VIDEO_DEC_FLAG_DVD) { CVideoInputPin* pPin = dynamic_cast<CVideoInputPin*>(m_pInput); AM_SimpleRateChange pinRate = pPin->GetDVDRateChange(); - if (pinRate.Rate != m_DVDRate.Rate) { + if (abs(pinRate.Rate) != m_DVDRate.Rate) { DbgLog((LOG_TRACE, 10, L"DVD Rate changed to: %d", pinRate.Rate)); - m_DVDRate.Rate = pinRate.Rate; + m_DVDRate.Rate = abs(pinRate.Rate); m_DVDRate.StartTime = pFrame->rtStart; } |