aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-18 17:01:54 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-18 17:01:54 +0200
commit6e73e40bb16f3b34f39364314b67f4f41e46b9a8 (patch)
tree314ac0d55643f0bfd80eaf7b88a33a7a0cb9c760
parent2347ca7ae671d0ef54a9ecf446990441dcb81f8d (diff)
r
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 020deb7..c6b0e8d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -900,9 +900,9 @@ static void open_video_hardware(AVCodecContext *codec_context, VideoQuality vide
} else if(codec_context->codec_id == AV_CODEC_ID_HEVC) {
//av_dict_set(&options, "pix_fmt", "yuv420p16le", 0);
if(color_depth == GSR_COLOR_DEPTH_10_BITS)
- av_dict_set_int(&options, "profile", AV_PROFILE_HEVC_MAIN_10, 0);
+ av_dict_set(&options, "profile", "main10", 0);
else
- av_dict_set_int(&options, "profile", AV_PROFILE_HEVC_MAIN, 0);
+ av_dict_set(&options, "profile", "main", 0);
}
} else {
// TODO: More quality options