summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-12-21 18:18:24 +0100
committerwm4 <wm4@nowhere>2016-12-21 18:18:24 +0100
commitb1c0bbe8b8b9d25c2682f29af66ad243e0072897 (patch)
tree73a024a69fdfa3707de4e18962e4e1af02226c6d /video/mp_image.h
parent1ba352581687548ffc2664b94f831a3dd12d05fa (diff)
downloadmpv-b1c0bbe8b8b9d25c2682f29af66ad243e0072897.tar.bz2
mpv-b1c0bbe8b8b9d25c2682f29af66ad243e0072897.tar.xz
video: use demuxer-signaled duration for last video frame
Helps with gif, probably does unwanted things with other formats. This doesn't handle --end quite correctly, but this could be added later. Fixes #3924.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 7c0f7bad7e..6606f19c90 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -85,7 +85,7 @@ typedef struct mp_image {
/* only inside filter chain */
double pts;
/* only after decoder */
- double dts;
+ double dts, pkt_duration;
/* for private use */
void* priv;