summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-26 23:41:20 +0100
committerwm4 <wm4@nowhere>2013-11-26 23:43:56 +0100
commit7a0299478e169ea076fe57028fda1ef7292a5431 (patch)
tree56942e2b844c08d507be009535446c92831a588d /mpvcore
parentf1eb30a476fa92840d1cdfcdcc13db9e59ad09a6 (diff)
downloadmpv-7a0299478e169ea076fe57028fda1ef7292a5431.tar.bz2
mpv-7a0299478e169ea076fe57028fda1ef7292a5431.tar.xz
video: unbreak --no-correct-pts with demuxers that use DTS
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/player/playloop.c2
-rw-r--r--mpvcore/player/video.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/player/playloop.c b/mpvcore/player/playloop.c
index 56b2bc0bc5..73c751652c 100644
--- a/mpvcore/player/playloop.c
+++ b/mpvcore/player/playloop.c
@@ -176,7 +176,7 @@ static void seek_reset(struct MPContext *mpctx, bool reset_ao)
vf_chain_seek_reset(mpctx->d_video->vfilter);
mpctx->d_video->num_buffered_pts = 0;
mpctx->d_video->last_pts = MP_NOPTS_VALUE;
- mpctx->d_video->last_packet_pts = MP_NOPTS_VALUE;
+ mpctx->d_video->last_packet_pdts = MP_NOPTS_VALUE;
mpctx->d_video->pts = MP_NOPTS_VALUE;
mpctx->video_pts = MP_NOPTS_VALUE;
mpctx->delay = 0;
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c
index 429e141ab9..65343cfa58 100644
--- a/mpvcore/player/video.c
+++ b/mpvcore/player/video.c
@@ -119,7 +119,7 @@ int reinit_video_chain(struct MPContext *mpctx)
struct dec_video *d_video = talloc_zero(NULL, struct dec_video);
mpctx->d_video = d_video;
d_video->last_pts = MP_NOPTS_VALUE;
- d_video->last_packet_pts = MP_NOPTS_VALUE;
+ d_video->last_packet_pdts = MP_NOPTS_VALUE;
d_video->opts = mpctx->opts;
d_video->header = sh;
d_video->fps = sh->video->fps;