Bug 1252073 - Uninitialised value uses in mozilla::EncodingConstraints::operator==. r=docfaraday@gmail.com.

--HG--
extra : rebase_source : 705e0e821163e8f49d591d77ad306e317884d1c9
This commit is contained in:
Julian Seward 2016-03-02 12:29:36 +01:00
parent 496059d377
commit 0c7e11d71b

View File

@ -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;