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/mp2t/es_parser_mpeg1audio.h" | 5 #include "media/formats/mp2t/es_parser_mpeg1audio.h" |
6 | 6 |
7 #include <list> | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "media/base/audio_timestamp_helper.h" | 12 #include "media/base/audio_timestamp_helper.h" |
14 #include "media/base/bit_reader.h" | 13 #include "media/base/bit_reader.h" |
15 #include "media/base/buffers.h" | 14 #include "media/base/buffers.h" |
16 #include "media/base/channel_layout.h" | 15 #include "media/base/channel_layout.h" |
17 #include "media/base/stream_parser_buffer.h" | 16 #include "media/base/stream_parser_buffer.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 201 } |
203 | 202 |
204 void EsParserMpeg1Audio::SkipMpeg1AudioFrame( | 203 void EsParserMpeg1Audio::SkipMpeg1AudioFrame( |
205 const Mpeg1AudioFrame& mpeg1audio_frame) { | 204 const Mpeg1AudioFrame& mpeg1audio_frame) { |
206 DCHECK_EQ(mpeg1audio_frame.queue_offset, es_queue_->head()); | 205 DCHECK_EQ(mpeg1audio_frame.queue_offset, es_queue_->head()); |
207 es_queue_->Pop(mpeg1audio_frame.size); | 206 es_queue_->Pop(mpeg1audio_frame.size); |
208 } | 207 } |
209 | 208 |
210 } // namespace mp2t | 209 } // namespace mp2t |
211 } // namespace media | 210 } // namespace media |
OLD | NEW |