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

Unified Diff: media/formats/mp4/mp4_stream_parser.h

Issue 2254733006: Allow MP4 parser to handle multiple audio and video tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merged-buffers-map
Patch Set: CR feedback Created 4 years, 4 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/mp4/avc.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/mp4_stream_parser.h
diff --git a/media/formats/mp4/mp4_stream_parser.h b/media/formats/mp4/mp4_stream_parser.h
index 4e820bff5ebe22f57030a95c6a4c4d0c12d68fbd..1015b98faa648274ffc69f7070263cc6fe4d0a2e 100644
--- a/media/formats/mp4/mp4_stream_parser.h
+++ b/media/formats/mp4/mp4_stream_parser.h
@@ -118,13 +118,12 @@ class MEDIA_EXPORT MP4StreamParser : public StreamParser {
bool has_audio_;
bool has_video_;
- uint32_t audio_track_id_;
- uint32_t video_track_id_;
+ std::set<uint32_t> audio_track_ids_;
+ std::set<uint32_t> video_track_ids_;
// The object types allowed for audio tracks.
std::set<int> audio_object_types_;
bool has_sbr_;
- bool is_audio_track_encrypted_;
- bool is_video_track_encrypted_;
+ std::map<uint32_t, bool> is_track_encrypted_;
// Tracks the number of MEDIA_LOGs for skipping top level boxes. Useful to
// prevent log spam.
« no previous file with comments | « media/formats/mp4/avc.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698