mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1252073 - Uninitialised value uses in mozilla::EncodingConstraints::operator==. r=docfaraday@gmail.com.
--HG-- extra : rebase_source : 705e0e821163e8f49d591d77ad306e317884d1c9
This commit is contained in:
parent
496059d377
commit
0c7e11d71b
@ -29,7 +29,17 @@ public:
|
||||
|
||||
bool operator==(const EncodingConstraints& constraints) const
|
||||
{
|
||||
return !memcmp(this, &constraints, sizeof(EncodingConstraints));
|
||||
return
|
||||
maxWidth == constraints.maxWidth &&
|
||||
maxHeight == constraints.maxHeight &&
|
||||
maxFps == constraints.maxFps &&
|
||||
maxFs == constraints.maxFs &&
|
||||
maxBr == constraints.maxBr &&
|
||||
maxPps == constraints.maxPps &&
|
||||
maxMbps == constraints.maxMbps &&
|
||||
maxCpb == constraints.maxCpb &&
|
||||
maxDpb == constraints.maxDpb &&
|
||||
scaleDownBy == constraints.scaleDownBy;
|
||||
}
|
||||
|
||||
uint32_t maxWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user