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

Side by Side Diff: media/formats/mp4/mp4_stream_parser.h

Issue 2361903002: mp4: skip 0 size trun samples (Closed)
Patch Set: replace DVLOG with LIMITED_MEDIA_LOG Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FORMATS_MP4_MP4_STREAM_PARSER_H_ 5 #ifndef MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ 6 #define MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 std::set<uint32_t> video_track_ids_; 122 std::set<uint32_t> video_track_ids_;
123 // The object types allowed for audio tracks. 123 // The object types allowed for audio tracks.
124 std::set<int> audio_object_types_; 124 std::set<int> audio_object_types_;
125 bool has_sbr_; 125 bool has_sbr_;
126 std::map<uint32_t, bool> is_track_encrypted_; 126 std::map<uint32_t, bool> is_track_encrypted_;
127 127
128 // Tracks the number of MEDIA_LOGs for skipping top level boxes. Useful to 128 // Tracks the number of MEDIA_LOGs for skipping top level boxes. Useful to
129 // prevent log spam. 129 // prevent log spam.
130 int num_top_level_box_skipped_; 130 int num_top_level_box_skipped_;
131 131
132 // Tracks the number of MEDIA_LOGS for skipping empty trun samples.
133 int num_emtpy_samples_skipped_;
wolenetz 2016/09/23 19:14:54 nit: typo.
134
132 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); 135 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser);
133 }; 136 };
134 137
135 } // namespace mp4 138 } // namespace mp4
136 } // namespace media 139 } // namespace media
137 140
138 #endif // MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ 141 #endif // MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | media/formats/mp4/mp4_stream_parser.cc » ('j') | media/formats/mp4/mp4_stream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698