vf_vapoursynth: fix _ChromaLocation

This commit is contained in:
Kacper Michajłow 2024-05-11 16:27:47 +02:00
parent 3874145248
commit 83e51a82e6
1 changed files with 2 additions and 1 deletions

View File

@ -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) {