mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 14:22:17 +00:00
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.)
This commit is contained in:
parent
7393f4d320
commit
9224ae4fff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user