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/mpeg/adts_stream_parser.h" | 5 #include "media/formats/mpeg/adts_stream_parser.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "media/formats/mpeg/adts_constants.h" | 9 #include "media/formats/mpeg/adts_constants.h" |
8 | 10 |
9 namespace media { | 11 namespace media { |
10 | 12 |
11 static const uint32_t kADTSStartCodeMask = 0xfff00000; | 13 static const uint32_t kADTSStartCodeMask = 0xfff00000; |
12 | 14 |
13 ADTSStreamParser::ADTSStreamParser() | 15 ADTSStreamParser::ADTSStreamParser() |
14 : MPEGAudioStreamParserBase(kADTSStartCodeMask, kCodecAAC, 0) {} | 16 : MPEGAudioStreamParserBase(kADTSStartCodeMask, kCodecAAC, 0) {} |
15 | 17 |
16 ADTSStreamParser::~ADTSStreamParser() {} | 18 ADTSStreamParser::~ADTSStreamParser() {} |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 if (channel_layout) | 91 if (channel_layout) |
90 *channel_layout = kADTSChannelLayoutTable[channel_layout_index]; | 92 *channel_layout = kADTSChannelLayoutTable[channel_layout_index]; |
91 | 93 |
92 if (metadata_frame) | 94 if (metadata_frame) |
93 *metadata_frame = false; | 95 *metadata_frame = false; |
94 | 96 |
95 return bytes_read; | 97 return bytes_read; |
96 } | 98 } |
97 | 99 |
98 } // namespace media | 100 } // namespace media |
OLD | NEW |