summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-04 05:15:27 +0100
committerDudemanguy <random342@airmail.cc>2024-01-22 14:54:55 +0000
commit47be5ad4aaa20df4bb1577110198d5aab3c88925 (patch)
tree6829c9e597217dd2b928e3e5f474adcbf0eadc06 /video/image_writer.c
parent0ac7a40dac2411cf9be429f611b8966560bb3f0c (diff)
downloadmpv-47be5ad4aaa20df4bb1577110198d5aab3c88925.tar.bz2
mpv-47be5ad4aaa20df4bb1577110198d5aab3c88925.tar.xz
csputils: replace mp_chroma_location with pl_chroma_location
Diffstat (limited to 'video/image_writer.c')
-rw-r--r--video/image_writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/image_writer.c b/video/image_writer.c
index 9c6ec16c3a..e86c255811 100644
--- a/video/image_writer.c
+++ b/video/image_writer.c
@@ -147,7 +147,7 @@ static void prepare_avframe(AVFrame *pic, AVCodecContext *avctx,
avctx->colorspace = pic->colorspace =
pl_system_to_av(image->params.repr.sys);
avctx->chroma_sample_location = pic->chroma_location =
- mp_chroma_location_to_av(image->params.chroma_location);
+ pl_chroma_to_av(image->params.chroma_location);
mp_dbg(log, "mapped color params:\n"
" trc = %s\n"
" primaries = %s\n"
@@ -645,7 +645,7 @@ static struct mp_image *convert_image(struct mp_image *image, int destfmt,
if (p.repr.sys != PL_COLOR_SYSTEM_RGB) {
p.repr.levels = yuv_levels;
p.repr.sys = PL_COLOR_SYSTEM_BT_601;
- p.chroma_location = MP_CHROMA_CENTER;
+ p.chroma_location = PL_CHROMA_CENTER;
}
mp_image_params_guess_csp(&p);
}