Created
February 4, 2019 22:20
-
-
Save bradsoto/0259776305179712f534b133013c5815 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/opusenc.c | |
+++ src/opusenc.c | |
@@ -145,7 +145,7 @@ | |
printf(" --speech Tune low bitrates for speech (override automatic detection)\n"); | |
printf(" --comp n Set encoding complexity (0-10, default: 10 (slowest))\n"); | |
printf(" --framesize n Set maximum frame size in milliseconds\n"); | |
- printf(" (2.5, 5, 10, 20, 40, 60, default: 20)\n"); | |
+ printf(" (2.5, 5, 10, 20, 40, 60, 120, default: 20)\n"); | |
printf(" --expect-loss n Set expected packet loss in percent (default: 0)\n"); | |
printf(" --downmix-mono Downmix to mono\n"); | |
printf(" --downmix-stereo Downmix to stereo (if >2 channels)\n"); | |
@@ -597,9 +597,10 @@ | |
else if (strcmp(optarg,"20")==0) opus_frame_param=OPUS_FRAMESIZE_20_MS; | |
else if (strcmp(optarg,"40")==0) opus_frame_param=OPUS_FRAMESIZE_40_MS; | |
else if (strcmp(optarg,"60")==0) opus_frame_param=OPUS_FRAMESIZE_60_MS; | |
+ else if (strcmp(optarg,"120")==0) opus_frame_param=OPUS_FRAMESIZE_120_MS; | |
else { | |
fatal("Invalid framesize: %s\n" | |
- "Value is in milliseconds and must be 2.5, 5, 10, 20, 40, or 60.\n", | |
+ "Value is in milliseconds and must be 2.5, 5, 10, 20, 40, 60, or 120.\n", | |
optarg); | |
} | |
frame_size = opus_frame_param <= OPUS_FRAMESIZE_40_MS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment