mirror of https://github.com/mpv-player/mpv
vf_vapoursynth: fix _ChromaLocation
This commit is contained in:
parent
3874145248
commit
83e51a82e6
|
@ -193,8 +193,9 @@ static void copy_mp_to_vs_frame_props_map(struct priv *p, VSMap *map,
|
|||
p->vsapi->propSetInt(map, "_ColorSpace",
|
||||
pl_system_to_av(params->repr.sys), 0);
|
||||
if (params->chroma_location) {
|
||||
// 0=left, 1=center, 2=topleft, 3=top, 4=bottomleft, 5=bottom.
|
||||
p->vsapi->propSetInt(map, "_ChromaLocation",
|
||||
params->chroma_location == PL_CHROMA_CENTER, 0);
|
||||
params->chroma_location - 1, 0);
|
||||
}
|
||||
char pict_type = 0;
|
||||
switch (img->pict_type) {
|
||||
|
|
Loading…
Reference in New Issue