| OLD | NEW |
| 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 #include "media/webm/webm_tracks_parser.h" | 5 #include "media/webm/webm_tracks_parser.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "media/base/buffers.h" | 9 #include "media/base/buffers.h" |
| 10 #include "media/base/text_track.h" |
| 10 #include "media/webm/webm_constants.h" | 11 #include "media/webm/webm_constants.h" |
| 11 #include "media/webm/webm_content_encodings.h" | 12 #include "media/webm/webm_content_encodings.h" |
| 12 | 13 |
| 13 namespace media { | 14 namespace media { |
| 14 | 15 |
| 15 // Values for TrackType element. | 16 // Values for TrackType element. |
| 16 static const int kWebMTrackTypeVideo = 1; | 17 static const int kWebMTrackTypeVideo = 1; |
| 17 static const int kWebMTrackTypeAudio = 2; | 18 static const int kWebMTrackTypeAudio = 2; |
| 18 static const int kWebMTrackTypeSubtitlesOrCaptions = 0x11; | 19 static const int kWebMTrackTypeSubtitlesOrCaptions = 0x11; |
| 19 static const int kWebMTrackTypeDescriptionsOrMetadata = 0x21; | 20 static const int kWebMTrackTypeDescriptionsOrMetadata = 0x21; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 256 } |
| 256 | 257 |
| 257 codec_id_ = str; | 258 codec_id_ = str; |
| 258 return true; | 259 return true; |
| 259 } | 260 } |
| 260 | 261 |
| 261 return true; | 262 return true; |
| 262 } | 263 } |
| 263 | 264 |
| 264 } // namespace media | 265 } // namespace media |
| OLD | NEW |