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

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

Issue 2368773002: MSE: Recognize "unknown duration" in ISOBMFF mvhd version 0, duration max uint32 case (Closed)
Patch Set: Address review comments Created 4 years, 2 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
« no previous file with comments | « no previous file | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BOX_DEFINITIONS_H_ 5 #ifndef MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_
6 #define MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ 6 #define MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 DECLARE_BOX_METHODS(ProtectionSchemeInfo); 141 DECLARE_BOX_METHODS(ProtectionSchemeInfo);
142 142
143 OriginalFormat format; 143 OriginalFormat format;
144 SchemeType type; 144 SchemeType type;
145 SchemeInfo info; 145 SchemeInfo info;
146 }; 146 };
147 147
148 struct MEDIA_EXPORT MovieHeader : Box { 148 struct MEDIA_EXPORT MovieHeader : Box {
149 DECLARE_BOX_METHODS(MovieHeader); 149 DECLARE_BOX_METHODS(MovieHeader);
150 150
151 uint8_t version;
151 uint64_t creation_time; 152 uint64_t creation_time;
152 uint64_t modification_time; 153 uint64_t modification_time;
153 uint32_t timescale; 154 uint32_t timescale;
154 uint64_t duration; 155 uint64_t duration;
155 int32_t rate; 156 int32_t rate;
156 int16_t volume; 157 int16_t volume;
157 uint32_t next_track_id; 158 uint32_t next_track_id;
158 }; 159 };
159 160
160 struct MEDIA_EXPORT TrackHeader : Box { 161 struct MEDIA_EXPORT TrackHeader : Box {
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 std::vector<TrackFragment> tracks; 478 std::vector<TrackFragment> tracks;
478 std::vector<ProtectionSystemSpecificHeader> pssh; 479 std::vector<ProtectionSystemSpecificHeader> pssh;
479 }; 480 };
480 481
481 #undef DECLARE_BOX 482 #undef DECLARE_BOX
482 483
483 } // namespace mp4 484 } // namespace mp4
484 } // namespace media 485 } // namespace media
485 486
486 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ 487 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_
OLDNEW
« no previous file with comments | « no previous file | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698