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/filters/ffmpeg_audio_decoder.h" | 5 #include "media/filters/ffmpeg_audio_decoder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "media/base/audio_bus.h" | 11 #include "media/base/audio_bus.h" |
12 #include "media/base/audio_decoder_config.h" | 12 #include "media/base/audio_decoder_config.h" |
13 #include "media/base/audio_timestamp_helper.h" | 13 #include "media/base/audio_timestamp_helper.h" |
14 #include "media/base/bind_to_loop.h" | 14 #include "media/base/bind_to_loop.h" |
15 #include "media/base/data_buffer.h" | 15 #include "media/base/data_buffer.h" |
16 #include "media/base/decoder_buffer.h" | 16 #include "media/base/decoder_buffer.h" |
17 #include "media/base/demuxer.h" | 17 #include "media/base/demuxer.h" |
18 #include "media/base/pipeline.h" | 18 #include "media/base/pipeline.h" |
19 #include "media/ffmpeg/ffmpeg_common.h" | 19 #include "media/ffmpeg/ffmpeg_common.h" |
20 #include "media/filters/ffmpeg_glue.h" | 20 #include "media/filters/ffmpeg_glue.h" |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 // Decoding finished successfully, update statistics. | 499 // Decoding finished successfully, update statistics. |
500 if (result > 0) { | 500 if (result > 0) { |
501 PipelineStatistics statistics; | 501 PipelineStatistics statistics; |
502 statistics.audio_bytes_decoded = result; | 502 statistics.audio_bytes_decoded = result; |
503 statistics_cb_.Run(statistics); | 503 statistics_cb_.Run(statistics); |
504 } | 504 } |
505 } while (packet.size > 0); | 505 } while (packet.size > 0); |
506 } | 506 } |
507 | 507 |
508 } // namespace media | 508 } // namespace media |
OLD | NEW |