Allow both hevc and h265 (as alias)
This commit is contained in:
parent
f9e067b828
commit
31e54bdc85
@ -199,7 +199,7 @@ int gsr_kms_client_init(gsr_kms_client *self, const char *card_path) {
|
|||||||
} else {
|
} else {
|
||||||
cap_t kms_server_cap = cap_get_file(server_filepath);
|
cap_t kms_server_cap = cap_get_file(server_filepath);
|
||||||
if(kms_server_cap) {
|
if(kms_server_cap) {
|
||||||
cap_flag_value_t res = 0;
|
cap_flag_value_t res = CAP_CLEAR;
|
||||||
cap_get_flag(kms_server_cap, CAP_SYS_ADMIN, CAP_PERMITTED, &res);
|
cap_get_flag(kms_server_cap, CAP_SYS_ADMIN, CAP_PERMITTED, &res);
|
||||||
if(res == CAP_SET) {
|
if(res == CAP_SET) {
|
||||||
//fprintf(stderr, "has permission!\n");
|
//fprintf(stderr, "has permission!\n");
|
||||||
|
@ -1436,12 +1436,12 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
if(strcmp(video_codec_to_use, "h264") == 0) {
|
if(strcmp(video_codec_to_use, "h264") == 0) {
|
||||||
video_codec = VideoCodec::H264;
|
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;
|
video_codec = VideoCodec::HEVC;
|
||||||
} else if(strcmp(video_codec_to_use, "av1") == 0) {
|
} else if(strcmp(video_codec_to_use, "av1") == 0) {
|
||||||
video_codec = VideoCodec::AV1;
|
video_codec = VideoCodec::AV1;
|
||||||
} else if(strcmp(video_codec_to_use, "auto") != 0) {
|
} 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();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user