Fix HEVC mode if the encoder changes

This commit is contained in:
Cameron Gutman 2023-04-16 15:15:19 -05:00
commit d33bd00bb4
5 changed files with 21 additions and 15 deletions

View file

@ -25,6 +25,7 @@ vaSyncBuffer(
#include "src/main.h"
#include "src/platform/common.h"
#include "src/utility.h"
#include "src/video.h"
using namespace std::literals;
@ -626,11 +627,11 @@ namespace va {
return false;
}
if (config::video.hevc_mode > 1 && !query(display.get(), profile_e::HEVCMain)) {
if (video::active_hevc_mode > 1 && !query(display.get(), profile_e::HEVCMain)) {
return false;
}
if (config::video.hevc_mode > 2 && !query(display.get(), profile_e::HEVCMain10)) {
if (video::active_hevc_mode > 2 && !query(display.get(), profile_e::HEVCMain10)) {
return false;
}