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_video_decoder.h" | 5 #include "media/filters/ffmpeg_video_decoder.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <algorithm> | 10 #include <algorithm> |
8 #include <string> | 11 #include <string> |
9 | 12 |
10 #include "base/bind.h" | 13 #include "base/bind.h" |
11 #include "base/callback_helpers.h" | 14 #include "base/callback_helpers.h" |
12 #include "base/command_line.h" | 15 #include "base/command_line.h" |
13 #include "base/location.h" | 16 #include "base/location.h" |
14 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
16 #include "media/base/bind_to_current_loop.h" | 19 #include "media/base/bind_to_current_loop.h" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 if (!codec || avcodec_open2(codec_context_.get(), codec, NULL) < 0) { | 372 if (!codec || avcodec_open2(codec_context_.get(), codec, NULL) < 0) { |
370 ReleaseFFmpegResources(); | 373 ReleaseFFmpegResources(); |
371 return false; | 374 return false; |
372 } | 375 } |
373 | 376 |
374 av_frame_.reset(av_frame_alloc()); | 377 av_frame_.reset(av_frame_alloc()); |
375 return true; | 378 return true; |
376 } | 379 } |
377 | 380 |
378 } // namespace media | 381 } // namespace media |
OLD | NEW |