Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / media / formats / mp2t / ts_section_pes.h
index b442ae4..56aa883 100644 (file)
@@ -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);
 };