Index: media/formats/mp2t/mp2t_stream_parser.cc |
diff --git a/media/formats/mp2t/mp2t_stream_parser.cc b/media/formats/mp2t/mp2t_stream_parser.cc |
index 35c61d6bde0bf20d6e4caf59a4d47e769ca79a99..164f2aa9c4d2bd8b2140eed6dfb8096344b0bbf2 100644 |
--- a/media/formats/mp2t/mp2t_stream_parser.cc |
+++ b/media/formats/mp2t/mp2t_stream_parser.cc |
@@ -217,6 +217,9 @@ void Mp2tStreamParser::Flush() { |
// Reset the selected PIDs. |
selected_audio_pid_ = -1; |
selected_video_pid_ = -1; |
+ |
+ // Reset the timestamp unroller. |
+ timestamp_unroller_.Reset(); |
} |
bool Mp2tStreamParser::Parse(const uint8* buf, int size) { |
@@ -356,7 +359,7 @@ void Mp2tStreamParser::RegisterPes(int pmt_pid, |
// Create the PES state here. |
DVLOG(1) << "Create a new PES state"; |
scoped_ptr<TsSection> pes_section_parser( |
- new TsSectionPes(es_parser.Pass())); |
+ new TsSectionPes(es_parser.Pass(), ×tamp_unroller_)); |
PidState::PidType pid_type = |
is_audio ? PidState::kPidAudioPes : PidState::kPidVideoPes; |
scoped_ptr<PidState> pes_pid_state( |