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

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-12-09 16:36:46 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2016-12-09 16:36:46 +0300
commit5bd0870e52dce3ebbb0baf85b2940d87ed651031 (patch)
tree305a59b45c1694d9418f9254cd86f675f885c7c6 /decoder
parentfc52cb97c19bb6c5eff2463b1f2f17e15f5e34de (diff)
Stop using deprecated pkt_pts (replaced by pts)
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/decoders/avcodec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder/LAVVideo/decoders/avcodec.cpp b/decoder/LAVVideo/decoders/avcodec.cpp
index 8acdf4a1..9585aec9 100644
--- a/decoder/LAVVideo/decoders/avcodec.cpp
+++ b/decoder/LAVVideo/decoders/avcodec.cpp
@@ -830,7 +830,7 @@ STDMETHODIMP CDecAvcodec::Decode(const BYTE *buffer, int buflen, REFERENCE_TIME
if (m_bResumeAtKeyFrame) {
if (m_bWaitingForKeyFrame && got_picture) {
if (m_pFrame->key_frame) {
- DbgLog((LOG_TRACE, 50, L"::Decode() - Found Key-Frame, resuming decoding at %I64d", m_pFrame->pkt_pts));
+ DbgLog((LOG_TRACE, 50, L"::Decode() - Found Key-Frame, resuming decoding at %I64d", m_pFrame->pts));
m_bWaitingForKeyFrame = FALSE;
} else {
got_picture = 0;
@@ -858,9 +858,9 @@ STDMETHODIMP CDecAvcodec::Decode(const BYTE *buffer, int buflen, REFERENCE_TIME
// Determine the proper timestamps for the frame, based on different possible flags.
///////////////////////////////////////////////////////////////////////////////////////////////
if (m_bFFReordering) {
- rtStart = m_pFrame->pkt_pts;
+ rtStart = m_pFrame->pts;
if (m_pFrame->pkt_duration)
- rtStop = m_pFrame->pkt_pts + m_pFrame->pkt_duration;
+ rtStop = m_pFrame->pts + m_pFrame->pkt_duration;
else
rtStop = AV_NOPTS_VALUE;
} else if (m_bBFrameDelay && m_pAVCtx->has_b_frames) {