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

Side by Side Diff: media/webm/webm_cluster_parser.h

Issue 10382200: Update WebMClusterParser to compute durations for all StreamParserBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ChunkDemuxerAbortRead_AudioOnly Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 5 #ifndef MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
6 #define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 6 #define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 WebMListParser parser_; 64 WebMListParser parser_;
65 65
66 int64 last_block_timecode_; 66 int64 last_block_timecode_;
67 scoped_array<uint8> block_data_; 67 scoped_array<uint8> block_data_;
68 int block_data_size_; 68 int block_data_size_;
69 int64 block_duration_; 69 int64 block_duration_;
70 70
71 int64 cluster_timecode_; 71 int64 cluster_timecode_;
72 BufferQueue audio_buffers_; 72 BufferQueue audio_buffers_;
73 scoped_refptr<StreamParserBuffer> delayed_audio_buffer_;
74
73 BufferQueue video_buffers_; 75 BufferQueue video_buffers_;
76 scoped_refptr<StreamParserBuffer> delayed_video_buffer_;
74 77
75 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser); 78 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser);
76 }; 79 };
77 80
78 } // namespace media 81 } // namespace media
79 82
80 #endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_ 83 #endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698