diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-04 05:15:27 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-22 14:54:55 +0000 |
commit | 47be5ad4aaa20df4bb1577110198d5aab3c88925 (patch) | |
tree | 6829c9e597217dd2b928e3e5f474adcbf0eadc06 /video/image_writer.c | |
parent | 0ac7a40dac2411cf9be429f611b8966560bb3f0c (diff) | |
download | mpv-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.c | 4 |
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); } |