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

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

Issue 364823008: Mpeg2TS - estimate duration for video frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix MEDIA_EXPORT needed by the ES adapter unit test. Created 6 years, 5 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_h264.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 61f344067ea64aa8fd7465751e0191181b755368..e419f029ae54d44f1f3a3060aa969e921b45536c 100644
--- a/media/formats/mp2t/mp2t_stream_parser.h
+++ b/media/formats/mp2t/mp2t_stream_parser.h
@@ -92,12 +92,6 @@ class MEDIA_EXPORT Mp2tStreamParser : public StreamParser {
scoped_refptr<StreamParserBuffer> stream_parser_buffer);
bool EmitRemainingBuffers();
- // At the beginning of a new segment, some video frames might be discarded.
- // This function fills the hole by duplicating the first valid key frame
- // given by |stream_parser_buffer|.
- void FillVideoGap(
- const scoped_refptr<StreamParserBuffer>& stream_parser_buffer);
-
// List of callbacks.
InitCB init_cb_;
NewConfigCB config_cb_;
@@ -121,11 +115,6 @@ class MEDIA_EXPORT Mp2tStreamParser : public StreamParser {
int selected_audio_pid_;
int selected_video_pid_;
- // DTS of discarded buffers.
- // Min PTS of discarded buffers.
- std::list<base::TimeDelta> discarded_frames_dts_;
- base::TimeDelta discarded_frames_min_pts_;
-
// Pending audio & video buffers.
std::list<BufferQueueWithConfig> buffer_queue_chain_;
@@ -134,7 +123,6 @@ class MEDIA_EXPORT Mp2tStreamParser : public StreamParser {
// Indicate whether a segment was started.
bool segment_started_;
- bool first_video_frame_in_segment_;
base::TimeDelta time_offset_;
DISALLOW_COPY_AND_ASSIGN(Mp2tStreamParser);
« no previous file with comments | « media/formats/mp2t/es_parser_h264.cc ('k') | media/formats/mp2t/mp2t_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698