Rename --codec to --video-codec

This prepares the introduction of --audio-codec.

PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>
This commit is contained in:
Romain Vimont 2023-02-20 21:19:36 +01:00
commit cee40ca047
13 changed files with 56 additions and 42 deletions

View file

@ -3,7 +3,6 @@ _scrcpy() {
local opts="
--always-on-top
-b --bit-rate=
--codec=
--codec-options=
--crop=
-d --select-usb
@ -55,6 +54,7 @@ _scrcpy() {
--v4l2-sink=
-V --verbosity=
-v --version
--video-codec=
-w --stay-awake
--window-borderless
--window-title=
@ -66,7 +66,7 @@ _scrcpy() {
_init_completion -s || return
case "$prev" in
--codec)
--video-codec)
COMPREPLY=($(compgen -W 'h264 h265 av1' -- "$cur"))
return
;;