Skip to content

Commit bd6bbb3

Browse files
committed
fix: use the 3-parameter QueryCodecSupport overloads
1 parent aa338da commit bd6bbb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎webrtc-jni/src/main/cpp/src/media/video/codec/DefaultVideoCodecFactories.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ namespace jni
142142
143143
for (const webrtc::SdpVideoFormat & format : factory.GetSupportedFormats()) {
144144
if (IsDefaultHardwareFormat(format)
145-
|| factory.QueryCodecSupport(format, std::nullopt).is_power_efficient) {
145+
|| factory.QueryCodecSupport(format, std::nullopt, std::nullopt).is_power_efficient) {
146146
formats.push_back(format);
147147
}
148148
}
@@ -156,7 +156,7 @@ namespace jni
156156
157157
for (const webrtc::SdpVideoFormat & format : factory.GetSupportedFormats()) {
158158
if (IsDefaultHardwareFormat(format)
159-
|| factory.QueryCodecSupport(format, false).is_power_efficient) {
159+
|| factory.QueryCodecSupport(format, false, std::nullopt).is_power_efficient) {
160160
formats.push_back(format);
161161
}
162162
}

0 commit comments

Comments
 (0)