From 8bdedf9062074f03b13820487fccc892105eb472 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Dec 2019 06:00:37 +0100 Subject: options: make keys in key/value lists unique I don't even know anymore whether this was intended or not. Certain use cases for the "-o" options might require this. These options are for passing general FFmpeg options. These are translated to av_opt_set() calls, which may or may not accumulate the option values on multiple calls with the same option name (how should I know?). Anyway, it seems crazy to allow non-unique keys, so make them unique. The ad-hoc nature of the option code makes this wonderfully complicated (when I wrote that this code is cursed, I meant it). In combination with lazy testing, it probably means there are lots of bugs here. --- DOCS/man/mpv.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS') diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index eaced80082..9ff62ae4f0 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -520,6 +520,9 @@ Suffix Meaning -add Append 1 or more items (same syntax as -set) ============= =============================================== +Keys are unique within the list. If an already present key is set, the existing +key is removed before the new value is appended. + Filter options ~~~~~~~~~~~~~~ -- cgit v1.2.3