diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-11-05 13:57:37 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-11-05 13:57:37 +0800 |
commit | ad52f6b9eaec6b33af484fe90b8bbdaa0dd5fbb9 (patch) | |
tree | e6e67855a9e9f4b5acd8de5f21f759561d12cc0c /multimedia | |
parent | f97602ec6fd4a3cdfa06e9b07485c15a941cca52 (diff) | |
download | freebsd-ports-gnome-ad52f6b9eaec6b33af484fe90b8bbdaa0dd5fbb9.tar.gz freebsd-ports-gnome-ad52f6b9eaec6b33af484fe90b8bbdaa0dd5fbb9.tar.zst freebsd-ports-gnome-ad52f6b9eaec6b33af484fe90b8bbdaa0dd5fbb9.zip |
Fix recording with libtheora.
Feature safe: yes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/recordmydesktop/Makefile | 2 | ||||
-rw-r--r-- | multimedia/recordmydesktop/files/patch-rmd_initialize_data.c | 11 | ||||
-rw-r--r-- | multimedia/recordmydesktop/files/patch-rmd_parseargs.c | 34 |
3 files changed, 46 insertions, 1 deletions
diff --git a/multimedia/recordmydesktop/Makefile b/multimedia/recordmydesktop/Makefile index f58f873918be..f189a5e2ef23 100644 --- a/multimedia/recordmydesktop/Makefile +++ b/multimedia/recordmydesktop/Makefile @@ -2,7 +2,7 @@ PORTNAME= recordmydesktop DISTVERSION= 0.3.8.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= multimedia MASTER_SITES= SF diff --git a/multimedia/recordmydesktop/files/patch-rmd_initialize_data.c b/multimedia/recordmydesktop/files/patch-rmd_initialize_data.c new file mode 100644 index 000000000000..275f2edf7dee --- /dev/null +++ b/multimedia/recordmydesktop/files/patch-rmd_initialize_data.c @@ -0,0 +1,11 @@ +--- src/rmd_initialize_data.c.orig 2012-11-05 13:28:29.000000000 +0800 ++++ src/rmd_initialize_data.c 2012-11-05 13:28:57.000000000 +0800 +@@ -224,7 +224,7 @@ + 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/multimedia/recordmydesktop/files/patch-rmd_parseargs.c b/multimedia/recordmydesktop/files/patch-rmd_parseargs.c new file mode 100644 index 000000000000..b27df6b5fa9e --- /dev/null +++ b/multimedia/recordmydesktop/files/patch-rmd_parseargs.c @@ -0,0 +1,34 @@ +--- src/rmd_parseargs.c.orig 2012-11-05 13:37:13.000000000 +0800 ++++ src/rmd_parseargs.c 2012-11-05 13:40:07.000000000 +0800 +@@ -106,8 +106,8 @@ + "\t--v_quality n\t\tA number from 0 to 63 for" + " desired encoded video quality(default 63).\n" + +- "\t--v_bitrate n\t\tA number from 45000 to 2000000" +- " for desired encoded video bitrate(default 45000).\n" ++ "\t--v_bitrate n\t\tA number from 0 to 2000000" ++ " for desired encoded video bitrate(default 0).\n" + + "\t--s_quality n\t\tDesired audio quality(-1 to 10).\n\n" + +@@ -327,17 +327,17 @@ + strcmp(argv[i], "-v_bitrate") == 0) { + if(i+1<argc){ + int num=atoi(argv[i+1]); +- if((num>=45000)&&(num<=2000000)) ++ if((num>=0)&&(num<=2000000)) + arg_return->v_bitrate=num; + else{ + fprintf(stderr,"Argument Usage:" +- " --v_bitrate n(number 45000-2000000)\n"); ++ " --v_bitrate n(number 0-2000000)\n"); + return FALSE; + } + } + else{ + fprintf(stderr,"Argument Usage:" +- " --v_bitrate n(number 45000-2000000)\n"); ++ " --v_bitrate n(number 0-2000000)\n"); + return FALSE; + } + i++; |