summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-06-18 01:54:40 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-06-18 01:54:40 -0700
commitb9cdf698172eed38422c58b1ce5664dadfa08829 (patch)
tree1a3bb81a823dcfbf40367e757ea417e0cba944f2 /recordmydesktop
parent419cf25c02374d66cad62aaa52c1e3ccd1f312fc (diff)
*: fix new theora
Import of debian/patches/02_fix_new_theora.dpatch
Diffstat (limited to 'recordmydesktop')
-rw-r--r--recordmydesktop/src/rmd_initialize_data.c2
-rw-r--r--recordmydesktop/src/rmd_parseargs.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/recordmydesktop/src/rmd_initialize_data.c b/recordmydesktop/src/rmd_initialize_data.c
index a95da82..4fef385 100644
--- a/recordmydesktop/src/rmd_initialize_data.c
+++ b/recordmydesktop/src/rmd_initialize_data.c
@@ -223,7 +223,7 @@ void rmdSetupDefaultArgs(ProgArgs *args) {
args->channels = 1;
args->frequency = 22050;
args->buffsize = 4096;
- args->v_bitrate = 45000;
+ args->v_bitrate = 0;
args->v_quality = 63;
args->s_quality = 10;
diff --git a/recordmydesktop/src/rmd_parseargs.c b/recordmydesktop/src/rmd_parseargs.c
index 8121ce9..e8dcb4b 100644
--- a/recordmydesktop/src/rmd_parseargs.c
+++ b/recordmydesktop/src/rmd_parseargs.c
@@ -215,7 +215,7 @@ boolean rmdParseArgs(int argc, char **argv, ProgArgs *arg_return) {
{ "v_bitrate", '\0',
POPT_ARG_INT, &arg_return->v_bitrate, 0,
- "A number from 45000 to 2000000 for desired encoded video bitrate(default 45000).",
+ "A number from 0 to 2000000 for desired encoded video bitrate(default 0).",
"n" },
{ "s_quality", '\0',
@@ -460,8 +460,8 @@ static boolean rmdValidateArguments(const ProgArgs *args)
fprintf(stdout, "--v_quality must be within the inclusive range [0-63].\n");
success = FALSE;
}
- if (args->v_bitrate < 45000 || args->v_quality > 2000000) {
- fprintf(stdout, "--v_bitrate must be within the inclusive range [45000-2000000].\n");
+ if (args->v_bitrate < 0 || args->v_quality > 2000000) {
+ fprintf(stdout, "--v_bitrate must be within the inclusive range [0-2000000].\n");
success = FALSE;
}
if (args->frequency <= 0) {
© All Rights Reserved