OLD | NEW |
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 #include "media/formats/webm/webm_cluster_parser.h" | 5 #include "media/formats/webm/webm_cluster_parser.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
10 #include "base/sys_byteorder.h" | 11 #include "base/sys_byteorder.h" |
11 #include "media/base/decrypt_config.h" | 12 #include "media/base/decrypt_config.h" |
12 #include "media/base/timestamp_constants.h" | 13 #include "media/base/timestamp_constants.h" |
13 #include "media/filters/webvtt_util.h" | 14 #include "media/filters/webvtt_util.h" |
14 #include "media/formats/webm/webm_constants.h" | 15 #include "media/formats/webm/webm_constants.h" |
15 #include "media/formats/webm/webm_crypto_helpers.h" | 16 #include "media/formats/webm/webm_crypto_helpers.h" |
16 #include "media/formats/webm/webm_webvtt_parser.h" | 17 #include "media/formats/webm/webm_webvtt_parser.h" |
17 | 18 |
18 namespace media { | 19 namespace media { |
19 | 20 |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 WebMClusterParser::FindTextTrack(int track_num) { | 874 WebMClusterParser::FindTextTrack(int track_num) { |
874 const TextTrackMap::iterator it = text_track_map_.find(track_num); | 875 const TextTrackMap::iterator it = text_track_map_.find(track_num); |
875 | 876 |
876 if (it == text_track_map_.end()) | 877 if (it == text_track_map_.end()) |
877 return NULL; | 878 return NULL; |
878 | 879 |
879 return &it->second; | 880 return &it->second; |
880 } | 881 } |
881 | 882 |
882 } // namespace media | 883 } // namespace media |
OLD | NEW |