Fix compilation warning when not using clang

Initialier lists caused gcc to raise warnings.

Change-Id: Ib9201d537082d311fb5f08e60773bc47ea4af896
This commit is contained in:
Rintaro Kuroiwa 2014-02-13 20:31:46 -08:00
parent 172cd59987
commit 16c6c92643
1 changed files with 11 additions and 7 deletions

View File

@ -74,11 +74,13 @@ VideoStreamInfoParameters GetDefaultVideoStreamInfoParams() {
const std::vector<uint8> kExtraData;
const bool kEncryptedFlag = false;
return {kTrackId, kTimeScale, kVideoStreamDuration, kH264Codec,
VideoStreamInfoParameters param = {
kTrackId, kTimeScale, kVideoStreamDuration, kH264Codec,
VideoStreamInfo::GetCodecString(
kCodecH264, kH264Profile, kH264CompatibleProfile, kH264Level),
kLanuageUndefined, kWidth, kHeight, kNaluLengthSize, kExtraData,
kEncryptedFlag};
return param;
}
OnMediaEndParameters GetDefaultOnMediaEndParams() {
@ -92,8 +94,10 @@ OnMediaEndParameters GetDefaultOnMediaEndParams() {
const uint64 kIndexRangeEnd = kIndexRangeStart + 100;
const float kMediaDuration = 10.5f;
const uint64 kFileSize = 10000;
return {kHasInitRange, kInitRangeStart, kInitRangeEnd, kHasIndexRange,
OnMediaEndParameters param = {
kHasInitRange, kInitRangeStart, kInitRangeEnd, kHasIndexRange,
kIndexRangeStart, kIndexRangeEnd, kMediaDuration, kFileSize};
return param;
}
void SetDefaultMuxerOptionsValues(MuxerOptions* muxer_options) {