From bd6bbb3d7ab75f4e6e19291ae3d28d6e5f7dc167 Mon Sep 17 00:00:00 2001 From: Alex Andres Date: Thu, 22 Oct 2026 19:25:44 +0200 Subject: [PATCH] fix: use the 3-parameter QueryCodecSupport overloads --- .../cpp/src/media/video/codec/DefaultVideoCodecFactories.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc-jni/src/main/cpp/src/media/video/codec/DefaultVideoCodecFactories.cpp b/webrtc-jni/src/main/cpp/src/media/video/codec/DefaultVideoCodecFactories.cpp index 6c465ca8..b714ba11 100644 --- a/webrtc-jni/src/main/cpp/src/media/video/codec/DefaultVideoCodecFactories.cpp +++ b/webrtc-jni/src/main/cpp/src/media/video/codec/DefaultVideoCodecFactories.cpp @@ -142,7 +142,7 @@ namespace jni for (const webrtc::SdpVideoFormat & format : factory.GetSupportedFormats()) { if (IsDefaultHardwareFormat(format) - || factory.QueryCodecSupport(format, std::nullopt).is_power_efficient) { + || factory.QueryCodecSupport(format, std::nullopt, std::nullopt).is_power_efficient) { formats.push_back(format); } } @@ -156,7 +156,7 @@ namespace jni for (const webrtc::SdpVideoFormat & format : factory.GetSupportedFormats()) { if (IsDefaultHardwareFormat(format) - || factory.QueryCodecSupport(format, false).is_power_efficient) { + || factory.QueryCodecSupport(format, false, std::nullopt).is_power_efficient) { formats.push_back(format); } }