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

Unified Diff: media/formats/mp2t/mp2t_stream_parser.h

Issue 539343002: Make the timestamp unroll offset consistent accross PES pids. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CR comments from patch set #8. Created 6 years, 3 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
« no previous file with comments | « media/formats/mp2t/es_parser_adts.cc ('k') | media/formats/mp2t/mp2t_stream_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/mp2t_stream_parser.h
diff --git a/media/formats/mp2t/mp2t_stream_parser.h b/media/formats/mp2t/mp2t_stream_parser.h
index e419f029ae54d44f1f3a3060aa969e921b45536c..71f147c47ae17ab64199431e78ade5a1acb2072f 100644
--- a/media/formats/mp2t/mp2t_stream_parser.h
+++ b/media/formats/mp2t/mp2t_stream_parser.h
@@ -15,6 +15,7 @@
#include "media/base/media_export.h"
#include "media/base/stream_parser.h"
#include "media/base/video_decoder_config.h"
+#include "media/formats/mp2t/timestamp_unroller.h"
namespace media {
@@ -123,7 +124,11 @@ class MEDIA_EXPORT Mp2tStreamParser : public StreamParser {
// Indicate whether a segment was started.
bool segment_started_;
- base::TimeDelta time_offset_;
+
+ // Timestamp unroller.
+ // Timestamps in PES packets must be unrolled using the same offset.
+ // So the unroller is global between PES pids.
+ TimestampUnroller timestamp_unroller_;
DISALLOW_COPY_AND_ASSIGN(Mp2tStreamParser);
};
« no previous file with comments | « media/formats/mp2t/es_parser_adts.cc ('k') | media/formats/mp2t/mp2t_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698