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

Unified Diff: media/formats/mp2t/es_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/mp2t/es_parser.cc
diff --git a/media/formats/mp2t/es_parser.cc b/media/formats/mp2t/es_parser.cc
index 7512c0b88ecf8fbcf5798e253a4fceb6ed71e888..713d50cc79b9eff4f71453dad8c05f3276af2e61 100644
--- a/media/formats/mp2t/es_parser.cc
+++ b/media/formats/mp2t/es_parser.cc
@@ -11,9 +11,7 @@ namespace media {
namespace mp2t {
EsParser::TimingDesc::TimingDesc()
- : dts(kNoDecodeTimestamp()),
- pts(kNoTimestamp()) {
-}
+ : dts(kNoDecodeTimestamp()), pts(kNoTimestamp) {}
mmoroz 2016/07/19 08:50:33 Shouldn't |kNoDecodeTimestamp()| become |kNoDecode
EsParser::TimingDesc::TimingDesc(
DecodeTimestamp dts_in, base::TimeDelta pts_in)
@@ -35,7 +33,7 @@ bool EsParser::Parse(const uint8_t* buf,
DCHECK(buf);
DCHECK_GT(size, 0);
- if (pts != kNoTimestamp()) {
+ if (pts != kNoTimestamp) {
// Link the end of the byte queue with the incoming timing descriptor.
TimingDesc timing_desc(dts, pts);
timing_desc_list_.push_back(

Powered by Google App Engine
This is Rietveld 408576698