diff options
-rw-r--r-- | DOCS/man/en/vo.rst | 6 | ||||
-rw-r--r-- | video/out/vo_vdpau.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/DOCS/man/en/vo.rst b/DOCS/man/en/vo.rst index d37b679303..1199b6b10a 100644 --- a/DOCS/man/en/vo.rst +++ b/DOCS/man/en/vo.rst @@ -136,9 +136,9 @@ Available video output drivers are: ``colorkey=<#RRGGBB|#AARRGGBB>`` Set the VDPAU presentation queue background color, which in practice is the colorkey used if VDPAU operates in overlay mode (default: - ``#00000000``, meaning do not change the VDPAU default). If the alpha - component of this value is 0, the default VDPAU colorkey will be used - instead (which is usually green). + ``#020507``, some shade of black). If the alpha component of this value + is 0, the default VDPAU colorkey will be used instead (which is usually + green). Using the VDPAU frame queueing functionality controlled by the queuetime options makes mpv's frame flip timing less sensitive to system CPU load and diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index addb155c56..9d08ad376b 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1556,7 +1556,10 @@ const struct vo_driver video_out_vdpau = { OPT_INT("queuetime_fs", flip_offset_fs, 0, OPTDEF_INT(50)), OPT_INTRANGE("output_surfaces", num_output_surfaces, 0, 2, MAX_OUTPUT_SURFACES, OPTDEF_INT(3)), - OPT_COLOR("colorkey", colorkey, 0), + OPT_COLOR("colorkey", colorkey, 0, + .defval = &(const struct m_color) { + .r = 2, .g = 5, .b = 7, .a = 255, + }), {NULL}, } }; |