Bug 1404992 - Initialize primitive VP8TrackEncoder members in declarations. r=dminor

--HG--
extra : rebase_source : c121870ba14181687c5492d42fb748dcb666065f
extra : source : 5cdee8077cab849ffe6e9dbf6f6498d6d20c6817
This commit is contained in:
Andreas Pehrson 2018-09-11 14:51:18 +02:00
parent 16fdd518b3
commit 15606e2807
2 changed files with 2 additions and 4 deletions

View File

@ -37,8 +37,6 @@ using namespace mozilla::dom;
VP8TrackEncoder::VP8TrackEncoder(TrackRate aTrackRate,
FrameDroppingMode aFrameDroppingMode)
: VideoTrackEncoder(aTrackRate, aFrameDroppingMode)
, mEncodedTimestamp(0)
, mDurationSinceLastKeyframe(0)
, mVPXContext(new vpx_codec_ctx_t())
, mVPXImageWrapper(new vpx_image_t())
{

View File

@ -65,7 +65,7 @@ private:
int32_t aDisplayHeight, vpx_codec_enc_cfg_t& config);
// Encoded timestamp.
StreamTime mEncodedTimestamp;
StreamTime mEncodedTimestamp = 0;
// Total duration in mTrackRate extracted by GetEncodedPartitions().
CheckedInt64 mExtractedDuration;
@ -83,7 +83,7 @@ private:
/**
* A duration of non-key frames in milliseconds.
*/
StreamTime mDurationSinceLastKeyframe;
StreamTime mDurationSinceLastKeyframe = 0;
/**
* A local segment queue which takes the raw data out from mRawSegment in the