Bug 1137508 Change H264 maxPayloadSize to 0 for Mode 1 r=jesup
authorEthan Hugg <ethanhugg@gmail.com>
Thu, 26 Feb 2015 15:29:36 -0800
changeset 261519 6b33ec726de90e27773b932d69d26e114406bf96
parent 261518 937ee04a8408df083ff4615bfa27c7c0b2f31a1d
child 261520 268374d29c6d87e04cfd2b59e0cb6e9c231f8043
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1137508
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1137508 Change H264 maxPayloadSize to 0 for Mode 1 r=jesup
media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp
--- a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp
+++ b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp
@@ -192,17 +192,17 @@ WebrtcGmpVideoEncoder::InitEncode_g(cons
   mCodecParams.mWidth = aCodecSettings->width;
   mCodecParams.mHeight = aCodecSettings->height;
   mCodecParams.mStartBitrate = aCodecSettings->startBitrate;
   mCodecParams.mMinBitrate = aCodecSettings->minBitrate;
   mCodecParams.mMaxBitrate = aCodecSettings->maxBitrate;
   mCodecParams.mMaxFramerate = aCodecSettings->maxFramerate;
   mMaxPayloadSize = aMaxPayloadSize;
   if (aCodecSettings->codecSpecific.H264.packetizationMode == 1) {
-    mMaxPayloadSize = 4*1024*1024; // insanely large
+    mMaxPayloadSize = 0; // No limit.
   }
 
   // Pass dummy codecSpecific data for now...
   nsTArray<uint8_t> codecSpecific;
 
   GMPErr err = mGMP->InitEncode(mCodecParams, codecSpecific, this, 1, mMaxPayloadSize);
   if (err != GMPNoErr) {
     return WEBRTC_VIDEO_CODEC_ERROR;