From ade2ef3a15f4b2a3ad9e898203cfb8e238845840 Mon Sep 17 00:00:00 2001 From: loki Date: Sun, 9 May 2021 16:19:05 +0200 Subject: [PATCH] Fix profile values for amfvce --- sunshine/video.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sunshine/video.cpp b/sunshine/video.cpp index ad298922..c6befe8d 100644 --- a/sunshine/video.cpp +++ b/sunshine/video.cpp @@ -58,20 +58,6 @@ enum class profile_hevc_e : int { }; } -namespace amd { - -enum class profile_h264_e : int { - main, - high, - constrained_baseline, - constrained_high, -}; - -enum class profile_hevc_e : int { - main, -}; -} - using ctx_t = util::safe_ptr; using frame_t = util::safe_ptr; using buffer_t = util::safe_ptr; @@ -303,7 +289,7 @@ static encoder_t nvenc { static encoder_t amdvce { "amdvce"sv, - { (int)amd::profile_h264_e::high, (int)amd::profile_hevc_e::main }, + { FF_PROFILE_H264_HIGH, FF_PROFILE_HEVC_MAIN }, AV_HWDEVICE_TYPE_D3D11VA, AV_PIX_FMT_D3D11, AV_PIX_FMT_NV12, AV_PIX_FMT_P010,