diff --git a/src/config.cpp b/src/config.cpp index 1ab4eb8d..ac23b474 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -22,6 +22,7 @@ #include "logging.h" #include "nvhttp.h" #include "rtsp.h" +#include "video.h" #include "utility.h" #include "platform/common.h" @@ -1231,6 +1232,9 @@ namespace config { std::cout << "Warning: Unrecognized configurable option ["sv << var << ']' << std::endl; } } + + ::video::active_hevc_mode = video.hevc_mode; + ::video::active_av1_mode = video.av1_mode; } int diff --git a/src/video.cpp b/src/video.cpp index 984af02d..27e15538 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -970,7 +970,11 @@ namespace video { int active_hevc_mode; int active_av1_mode; bool last_encoder_probe_supported_ref_frames_invalidation = false; - std::array last_encoder_probe_supported_yuv444_for_codec = {}; + std::array last_encoder_probe_supported_yuv444_for_codec = { + true, + true, + true + }; void reset_display(std::shared_ptr &disp, const platf::mem_type_e &type, const std::string &display_name, const config_t &config) {