From 6e73e40bb16f3b34f39364314b67f4f41e46b9a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 18 Sep 2024 17:01:54 +0200 Subject: r --- src/main.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3