From f642e5336a91c405345de5cfba17be631ec7bb46 Mon Sep 17 00:00:00 2001 From: "Lars R. Damerow" Date: Mon, 24 Aug 2026 11:07:53 -0700 Subject: [PATCH] fix(av1,hevc): stop av1 probes from clobbering hevc results The encoder probes for AV1 capabilities were referencing hevc variables. As a result some of them were making incorrect tests, and would have overwritten HEVC probe results if they failed. --- src/video.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video.cpp b/src/video.cpp index b6ea562495f..6e4ff8127a8 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -3248,12 +3248,12 @@ namespace video { if (active_av1_mode == 5 && !encoder->av1[encoder_t::DYNAMIC_RANGE] && !encoder->av1[encoder_t::DYNAMIC_RANGE_YUV444]) { BOOST_LOG(warning) << "Encoder ["sv << encoder->name << "] does not support AV1 Main10 Rext10_444 on this system"sv; active_av1_mode = 0; - } else if (active_hevc_mode == 4 && !encoder->av1[encoder_t::DYNAMIC_RANGE_YUV444]) { + } else if (active_av1_mode == 4 && !encoder->av1[encoder_t::DYNAMIC_RANGE_YUV444]) { BOOST_LOG(warning) << "Encoder ["sv << encoder->name << "] does not support AV1 Rext10_444 on this system"sv; - active_hevc_mode = 0; - } else if (active_hevc_mode == 3 && !encoder->hevc[encoder_t::DYNAMIC_RANGE]) { + active_av1_mode = 0; + } else if (active_av1_mode == 3 && !encoder->av1[encoder_t::DYNAMIC_RANGE]) { BOOST_LOG(warning) << "Encoder ["sv << encoder->name << "] does not support AV1 Main10 on this system"sv; - active_hevc_mode = 0; + active_av1_mode = 0; } else if (active_av1_mode == 2 && !encoder->av1[encoder_t::PASSED]) { BOOST_LOG(warning) << "Encoder ["sv << encoder->name << "] does not support AV1 on this system"sv; active_av1_mode = 0;