Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: media/formats/mp4/mp4_stream_parser.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 3dd4ce3fd4ef7d17b3cf64448f5cc9c5ccc73fd3..ffc49a104e8b49354bc89d16f70b631fefed8142 100644
--- a/media/formats/mp4/mp4_stream_parser.cc
+++ b/media/formats/mp4/mp4_stream_parser.cc
@@ -400,7 +400,7 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) {
RCHECK(config_cb_.Run(std::move(media_tracks), TextTrackConfigMap()));
- StreamParser::InitParameters params(kInfiniteDuration());
+ StreamParser::InitParameters params(kInfiniteDuration);
if (moov_->extends.header.fragment_duration > 0) {
params.duration = TimeDeltaFromRational(
moov_->extends.header.fragment_duration, moov_->header.timescale);

Powered by Google App Engine
This is Rietveld 408576698