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

Unified Diff: media/formats/mp2t/es_parser_adts.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_adts.cc
diff --git a/media/formats/mp2t/es_parser_adts.cc b/media/formats/mp2t/es_parser_adts.cc
index cd8d3886d0593a558d01c49d2b5fb0d384d90ca2..6ab784574c168a14dbe81fb4c65a4dc680a30bea 100644
--- a/media/formats/mp2t/es_parser_adts.cc
+++ b/media/formats/mp2t/es_parser_adts.cc
@@ -129,10 +129,10 @@ bool EsParserAdts::ParseFromEsQueue() {
// Get the PTS & the duration of this access unit.
TimingDesc current_timing_desc =
GetTimingDescriptor(adts_frame.queue_offset);
- if (current_timing_desc.pts != kNoTimestamp())
+ if (current_timing_desc.pts != kNoTimestamp)
audio_timestamp_helper_->SetBaseTimestamp(current_timing_desc.pts);
- if (audio_timestamp_helper_->base_timestamp() == kNoTimestamp()) {
+ if (audio_timestamp_helper_->base_timestamp() == kNoTimestamp) {
DVLOG(1) << "Skipping audio frame with unknown timestamp";
SkipAdtsFrame(adts_frame);
continue;
@@ -196,7 +196,7 @@ bool EsParserAdts::UpdateAudioConfiguration(const uint8_t* adts_header) {
// Reset the timestamp helper to use a new time scale.
if (audio_timestamp_helper_ &&
- audio_timestamp_helper_->base_timestamp() != kNoTimestamp()) {
+ audio_timestamp_helper_->base_timestamp() != kNoTimestamp) {
base::TimeDelta base_timestamp = audio_timestamp_helper_->GetTimestamp();
audio_timestamp_helper_.reset(new AudioTimestampHelper(orig_sample_rate));
audio_timestamp_helper_->SetBaseTimestamp(base_timestamp);

Powered by Google App Engine
This is Rietveld 408576698