summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-02-02 17:47:20 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-03 05:01:31 -0800
commit9224ae4fffdf6366131c34c4f14a0bc90d0bc2f4 (patch)
treeda072d3cce5e30076ecfff73bbc8e4119575dcae /video
parent7393f4d320d335dc7bb713844f28aa32e7d67fc5 (diff)
downloadmpv-9224ae4fffdf6366131c34c4f14a0bc90d0bc2f4.tar.bz2
mpv-9224ae4fffdf6366131c34c4f14a0bc90d0bc2f4.tar.xz
vf_vapoursynth: fix output colorspace flags and other attributes
Properly initialize the output frame parameters other than image format and size. This includes colorspace hints. (We're still not reading them back from VapourSynth if it sets them, though. Usually it doesn't anyway.)
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf_vapoursynth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index 679733a555..6b4ec87ad2 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -283,6 +283,8 @@ static void VS_CC vs_frame_done(void *userData, const VSFrameRef *f, int n,
struct mp_image *res = NULL;
if (f) {
struct mp_image img = map_vs_frame(p, f, false);
+ struct mp_image dummy = {.params = p->fmt_in};
+ mp_image_copy_attributes(&img, &dummy);
img.pkt_duration = -1;
const VSMap *map = p->vsapi->getFramePropsRO(f);
if (map) {