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

Unified Diff: media/formats/mp2t/ts_section_pes.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/timestamp_unroller_unittest.cc ('k') | media/formats/mp2t/ts_section_pes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/ts_section_pes.h
diff --git a/media/formats/mp2t/ts_section_pes.h b/media/formats/mp2t/ts_section_pes.h
index b442ae491f37c72efb5a97512b797110b5ef51d5..56aa8835f61c1c5fa2071fd7999ba11170d711d0 100644
--- a/media/formats/mp2t/ts_section_pes.h
+++ b/media/formats/mp2t/ts_section_pes.h
@@ -15,10 +15,12 @@ namespace media {
namespace mp2t {
class EsParser;
+class TimestampUnroller;
class TsSectionPes : public TsSection {
public:
- explicit TsSectionPes(scoped_ptr<EsParser> es_parser);
+ TsSectionPes(scoped_ptr<EsParser> es_parser,
+ TimestampUnroller* timestamp_unroller);
virtual ~TsSectionPes();
// TsSection implementation.
@@ -49,10 +51,7 @@ class TsSectionPes : public TsSection {
bool wait_for_pusi_;
// Used to unroll PTS and DTS.
- bool previous_pts_valid_;
- int64 previous_pts_;
- bool previous_dts_valid_;
- int64 previous_dts_;
+ TimestampUnroller* const timestamp_unroller_;
DISALLOW_COPY_AND_ASSIGN(TsSectionPes);
};
« no previous file with comments | « media/formats/mp2t/timestamp_unroller_unittest.cc ('k') | media/formats/mp2t/ts_section_pes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698