aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-11-30 17:47:04 +0100
committerdec05eba <dec05eba@protonmail.com>2023-11-30 17:47:37 +0100
commit31e54bdc8551fa5c9984311341fcbd05938eca9d (patch)
tree1f6a024b8f0b53fff95bdc0160d26fc3996d0893 /src/main.cpp
parentf9e067b82874266c501bdeb847611cae0a28163d (diff)
Allow both hevc and h265 (as alias)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index aafd9da..32da56d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1436,12 +1436,12 @@ int main(int argc, char **argv) {
if(strcmp(video_codec_to_use, "h264") == 0) {
video_codec = VideoCodec::H264;
- } else if(strcmp(video_codec_to_use, "h265") == 0) {
+ } else if(strcmp(video_codec_to_use, "h265") == 0 || strcmp(video_codec_to_use, "hevc") == 0) {
video_codec = VideoCodec::HEVC;
} else if(strcmp(video_codec_to_use, "av1") == 0) {
video_codec = VideoCodec::AV1;
} else if(strcmp(video_codec_to_use, "auto") != 0) {
- fprintf(stderr, "Error: -k should either be either 'auto', 'h264', 'h265' or 'av1', got: '%s'\n", video_codec_to_use);
+ fprintf(stderr, "Error: -k should either be either 'auto', 'h264', 'h265', 'hevc' or 'av1', got: '%s'\n", video_codec_to_use);
usage();
}