diff --git a/media/webrtc/signaling/src/common/EncodingConstraints.h b/media/webrtc/signaling/src/common/EncodingConstraints.h index 2b408b8d2962..efba7c51c61a 100644 --- a/media/webrtc/signaling/src/common/EncodingConstraints.h +++ b/media/webrtc/signaling/src/common/EncodingConstraints.h @@ -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;