diff options
author | wm4 <wm4@nowhere> | 2016-12-21 18:18:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-12-21 18:18:24 +0100 |
commit | b1c0bbe8b8b9d25c2682f29af66ad243e0072897 (patch) | |
tree | 73a024a69fdfa3707de4e18962e4e1af02226c6d /video/mp_image.c | |
parent | 1ba352581687548ffc2664b94f831a3dd12d05fa (diff) | |
download | mpv-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.c')
-rw-r--r-- | video/mp_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index ee1ab4104e..2c4627c33e 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -386,6 +386,7 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src) dst->fields = src->fields; dst->pts = src->pts; dst->dts = src->dts; + dst->pkt_duration = src->pkt_duration; dst->params.rotate = src->params.rotate; dst->params.stereo_in = src->params.stereo_in; dst->params.stereo_out = src->params.stereo_out; |