| 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_glue.h" | 5 #include "media/filters/ffmpeg_glue.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
| 10 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 11 #include "media/base/container_names.h" | 12 #include "media/base/container_names.h" |
| 12 #include "media/ffmpeg/ffmpeg_common.h" | 13 #include "media/ffmpeg/ffmpeg_common.h" |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 | 16 |
| 16 // Internal buffer size used by AVIO for reading. | 17 // Internal buffer size used by AVIO for reading. |
| 17 // TODO(dalecurtis): Experiment with this buffer size and measure impact on | 18 // TODO(dalecurtis): Experiment with this buffer size and measure impact on |
| 18 // performance. Currently we want to use 32kb to preserve existing behavior | 19 // performance. Currently we want to use 32kb to preserve existing behavior |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 avcodec_close(stream->codec); | 216 avcodec_close(stream->codec); |
| 216 } | 217 } |
| 217 } | 218 } |
| 218 } | 219 } |
| 219 | 220 |
| 220 avformat_close_input(&format_context_); | 221 avformat_close_input(&format_context_); |
| 221 av_free(avio_context_->buffer); | 222 av_free(avio_context_->buffer); |
| 222 } | 223 } |
| 223 | 224 |
| 224 } // namespace media | 225 } // namespace media |
| OLD | NEW |