| Index: media/formats/mp4/mp4_stream_parser.cc
|
| diff --git a/media/formats/mp4/mp4_stream_parser.cc b/media/formats/mp4/mp4_stream_parser.cc
|
| index 3136e1931d64435d705316d41f0ac79800cd1814..1c6950599939d798c1b2c7a76b0f8c45edd47a8e 100644
|
| --- a/media/formats/mp4/mp4_stream_parser.cc
|
| +++ b/media/formats/mp4/mp4_stream_parser.cc
|
| @@ -288,20 +288,18 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) {
|
|
|
| RCHECK(config_cb_.Run(audio_config, video_config, TextTrackConfigMap()));
|
|
|
| - base::TimeDelta duration;
|
| + StreamParser::StreamParameters params;
|
| if (moov_->extends.header.fragment_duration > 0) {
|
| - duration = TimeDeltaFromRational(moov_->extends.header.fragment_duration,
|
| - moov_->header.timescale);
|
| + params.duration = TimeDeltaFromRational(
|
| + moov_->extends.header.fragment_duration, moov_->header.timescale);
|
| } else if (moov_->header.duration > 0 &&
|
| moov_->header.duration != kuint64max) {
|
| - duration = TimeDeltaFromRational(moov_->header.duration,
|
| - moov_->header.timescale);
|
| - } else {
|
| - duration = kInfiniteDuration();
|
| + params.duration =
|
| + TimeDeltaFromRational(moov_->header.duration, moov_->header.timescale);
|
| }
|
|
|
| if (!init_cb_.is_null())
|
| - base::ResetAndReturn(&init_cb_).Run(true, duration, base::Time(), false);
|
| + base::ResetAndReturn(&init_cb_).Run(true, params);
|
|
|
| EmitNeedKeyIfNecessary(moov_->pssh);
|
| return true;
|
|
|