mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1320101 - Default to 2Mbps when no max bitrate is set. r=bwc,jesup
webrtc.org is in kbps and our constraints are in bps. 2000U is already in kbps however. MozReview-Commit-ID: 2Y4z2CIO6jE --HG-- extra : rebase_source : 5fac9331637a1c07ca2c897e444a6ca392e7b4f2
This commit is contained in:
parent
079365ac41
commit
836d0a3e98
@ -1975,7 +1975,7 @@ WebrtcVideoConduit::CodecConfigToWebRTCCodec(const VideoCodecConfig* codecInfo,
|
||||
cinst.minBitrate = mMinBitrate ? mMinBitrate : 200;
|
||||
cinst.startBitrate = mStartBitrate ? mStartBitrate : 300;
|
||||
cinst.targetBitrate = cinst.startBitrate;
|
||||
cinst.maxBitrate = MinIgnoreZero(2000U, codecInfo->mEncodingConstraints.maxBr)/1000;
|
||||
cinst.maxBitrate = MinIgnoreZero(2000U, codecInfo->mEncodingConstraints.maxBr/1000);
|
||||
// not mNegotiatedMaxBitrate! cinst.maxBitrate is the max for the codec, which will be overridden
|
||||
cinst.maxBitrate = MinIgnoreZero(cinst.maxBitrate, mPrefMaxBitrate);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user