mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 01:08:21 +00:00
Bug 1422389 - Limit default engine resolution. r=mchiang
MozReview-Commit-ID: LS1z7I4myeb --HG-- extra : rebase_source : f0fd6e20a13d11660a5ac57e9703f09978f12acb
This commit is contained in:
parent
2e81d28b54
commit
b3493432e7
@ -119,6 +119,8 @@ MediaEngineDefaultVideoSource::Allocate(const dom::MediaTrackConstraints &aConst
|
||||
MediaEngine::DEFAULT_43_VIDEO_HEIGHT
|
||||
#endif
|
||||
);
|
||||
mOpts.mWidth = std::max(160, std::min(mOpts.mWidth, 4096));
|
||||
mOpts.mHeight = std::max(90, std::min(mOpts.mHeight, 2160));
|
||||
mState = kAllocated;
|
||||
*aOutHandle = nullptr;
|
||||
return NS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user