summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-28 11:15:51 +0100
committerwm4 <wm4@nowhere>2016-01-28 11:23:16 +0100
commitd2942f1bcd51397971d63c1371a788c7217507f7 (patch)
treeaf0a20785156e6a20e8abae3c76199f5b4a10dbb /video
parent4d5d25fdbbe9b559eb1600520ef33fce380030c9 (diff)
downloadmpv-d2942f1bcd51397971d63c1371a788c7217507f7.tar.bz2
mpv-d2942f1bcd51397971d63c1371a788c7217507f7.tar.xz
mp_image: copy dts as part of mp_image attributes too
Fixes DTS handling with certain container formats broken in commit b53cb8de (when using vaapi-copy or dxva2-copy).
Diffstat (limited to 'video')
-rw-r--r--video/mp_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 7dd075be99..33badba3f7 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -383,6 +383,7 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src)
dst->pict_type = src->pict_type;
dst->fields = src->fields;
dst->pts = src->pts;
+ dst->dts = src->dts;
dst->params.rotate = src->params.rotate;
dst->params.stereo_in = src->params.stereo_in;
dst->params.stereo_out = src->params.stereo_out;