Rename --bit-rate to --video-bit-rate

This prepares the introduction of --audio-bit-rate.
This commit is contained in:
Romain Vimont
2023-02-21 19:56:44 +01:00
parent cf15859214
commit 207ae8b73c
14 changed files with 29 additions and 29 deletions

View File

@@ -104,7 +104,7 @@ static const struct sc_option options[] = {
},
{
.shortopt = 'b',
.longopt = "bit-rate",
.longopt = "video-bit-rate",
.argdesc = "value",
.text = "Encode the video at the given bit-rate, expressed in bits/s. "
"Unit suffixes are supported: 'K' (x1000) and 'M' (x1000000).\n"
@@ -1433,7 +1433,7 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
while ((c = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) {
switch (c) {
case 'b':
if (!parse_bit_rate(optarg, &opts->bit_rate)) {
if (!parse_bit_rate(optarg, &opts->video_bit_rate)) {
return false;
}
break;