summaryrefslogtreecommitdiffstats
path: root/video/out/vo_lavc.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
commit60e8a3d404f0640fa5a3f834eae54b4f1fb9127d (patch)
tree1da89a218d0ecf010c67a87cb2f625c4cb18e7d7 /video/out/vo_lavc.c
parentAdding upstream version 0.37.0. (diff)
downloadmpv-85641ae1aad608329bed81c5ced87e668b7f629e.tar.xz
mpv-85641ae1aad608329bed81c5ced87e668b7f629e.zip
Adding upstream version 0.38.0.upstream/0.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'video/out/vo_lavc.c')
-rw-r--r--video/out/vo_lavc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c
index 7170c1d..2842335 100644
--- a/video/out/vo_lavc.c
+++ b/video/out/vo_lavc.c
@@ -23,6 +23,8 @@
#include <stdio.h>
#include <stdlib.h>
+#include <libplacebo/utils/libav.h>
+
#include "common/common.h"
#include "options/options.h"
#include "video/fmt-conversion.h"
@@ -112,8 +114,8 @@ static int reconfig2(struct vo *vo, struct mp_image *img)
encoder->width = width;
encoder->height = height;
encoder->pix_fmt = pix_fmt;
- encoder->colorspace = mp_csp_to_avcol_spc(params->color.space);
- encoder->color_range = mp_csp_levels_to_avcol_range(params->color.levels);
+ encoder->colorspace = pl_system_to_av(params->repr.sys);
+ encoder->color_range = pl_levels_to_av(params->repr.levels);
AVRational tb;