Fix returns from IsSameSettings and IsSameRate in codec tests
Swap true/false. Bug: webrtc:14852 Change-Id: Id82c0180d33bfc4e5237f4800c3e89fe8d17693f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/302381 Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39917}
This commit is contained in:
parent
ff6cd53303
commit
691b447c53
@ -84,17 +84,17 @@ struct EncodingSettings {
|
|||||||
|
|
||||||
bool IsSameSettings(const EncodingSettings& other) const {
|
bool IsSameSettings(const EncodingSettings& other) const {
|
||||||
if (scalability_mode != other.scalability_mode) {
|
if (scalability_mode != other.scalability_mode) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto [layer_id, layer] : layer_settings) {
|
for (auto [layer_id, layer] : layer_settings) {
|
||||||
const auto& other_layer = other.layer_settings.at(layer_id);
|
const auto& other_layer = other.layer_settings.at(layer_id);
|
||||||
if (layer.resolution != other_layer.resolution) {
|
if (layer.resolution != other_layer.resolution) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsSameRate(const EncodingSettings& other) const {
|
bool IsSameRate(const EncodingSettings& other) const {
|
||||||
@ -102,11 +102,11 @@ struct EncodingSettings {
|
|||||||
const auto& other_layer = other.layer_settings.at(layer_id);
|
const auto& other_layer = other.layer_settings.at(layer_id);
|
||||||
if (layer.bitrate != other_layer.bitrate ||
|
if (layer.bitrate != other_layer.bitrate ||
|
||||||
layer.framerate != other_layer.framerate) {
|
layer.framerate != other_layer.framerate) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user