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

Unified Diff: media/formats/mp2t/es_parser_adts.cc

Issue 447963003: Introduce DecodeTimestamp class to make it easier to distiguish presentation and decode timestamps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 433baabe5e674017fcbb2b150fcaefb9006d0a37..08a54c437dd820f67c17bcdce57f4359af4432e9 100644
--- a/media/formats/mp2t/es_parser_adts.cc
+++ b/media/formats/mp2t/es_parser_adts.cc
@@ -127,7 +127,7 @@ EsParserAdts::~EsParserAdts() {
bool EsParserAdts::Parse(const uint8* buf, int size,
base::TimeDelta pts,
- base::TimeDelta dts) {
+ DecodeTimestamp dts) {
// The incoming PTS applies to the access unit that comes just after
// the beginning of |buf|.
if (pts != kNoTimestamp())
@@ -166,7 +166,6 @@ bool EsParserAdts::Parse(const uint8* buf, int size,
adts_frame.size,
is_key_frame,
DemuxerStream::AUDIO, 0);
- stream_parser_buffer->SetDecodeTimestamp(current_pts);
stream_parser_buffer->set_timestamp(current_pts);
stream_parser_buffer->set_duration(frame_duration);
emit_buffer_cb_.Run(stream_parser_buffer);
@@ -266,4 +265,3 @@ bool EsParserAdts::UpdateAudioConfiguration(const uint8* adts_header) {
} // namespace mp2t
} // namespace media
-

Powered by Google App Engine
This is Rietveld 408576698