From cb4fdb530ab736015dce6d23fb8d797124e4d319 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 24 Aug 2024 14:34:21 +0530 Subject: [PATCH] video/csputils: remove space from choice option for chroma loc Also document the field --- DOCS/interface-changes/rename-vf-format-chroma-loc | 1 + DOCS/man/vf.rst | 4 ++++ video/csputils.c | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 DOCS/interface-changes/rename-vf-format-chroma-loc diff --git a/DOCS/interface-changes/rename-vf-format-chroma-loc b/DOCS/interface-changes/rename-vf-format-chroma-loc new file mode 100644 index 0000000000..3703d84506 --- /dev/null +++ b/DOCS/interface-changes/rename-vf-format-chroma-loc @@ -0,0 +1 @@ +rename vf_format's `bottom left` chroma-location to `bottom-left` diff --git a/DOCS/man/vf.rst b/DOCS/man/vf.rst index ea6b704320..186a7af171 100644 --- a/DOCS/man/vf.rst +++ b/DOCS/man/vf.rst @@ -324,6 +324,10 @@ Available mpv-only filters are: Whether or not to include film grain metadata (default: yes). If disabled, any film grain metadata will be stripped from frames. + ```` + Set the chroma loc of the video. Use + ``--vf=format:chroma-location=help`` to list all available modes. + ```` Set the stereo mode the video is assumed to be encoded in. Use ``--vf=format:stereo-in=help`` to list all available modes. Check with diff --git a/video/csputils.c b/video/csputils.c index 555f0c045e..0b000a9aac 100644 --- a/video/csputils.c +++ b/video/csputils.c @@ -111,7 +111,7 @@ const struct m_opt_choice_alternatives pl_chroma_names[] = { {"mpeg2/4/h264",PL_CHROMA_LEFT}, {"mpeg1/jpeg", PL_CHROMA_CENTER}, {"top", PL_CHROMA_TOP_CENTER}, - {"bottom left", PL_CHROMA_BOTTOM_LEFT}, + {"bottom-left", PL_CHROMA_BOTTOM_LEFT}, {"bottom", PL_CHROMA_BOTTOM_CENTER}, {0} };