| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "services/media/framework_ffmpeg/av_codec_context.h" | 6 #include "services/media/framework_ffmpeg/av_codec_context.h" |
| 7 #include "services/media/framework_ffmpeg/ffmpeg_decoder_base.h" | 7 #include "services/media/framework_ffmpeg/ffmpeg_decoder_base.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 namespace media { | 10 namespace media { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 DCHECK(*output == nullptr); | 86 DCHECK(*output == nullptr); |
| 87 *output = CreateOutputEndOfStreamPacket(); | 87 *output = CreateOutputEndOfStreamPacket(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 av_packet_.size = 0; | 90 av_packet_.size = 0; |
| 91 av_packet_.data = nullptr; | 91 av_packet_.data = nullptr; |
| 92 | 92 |
| 93 return true; | 93 return true; |
| 94 } | 94 } |
| 95 | 95 |
| 96 FfmpegDecoderBase::DecoderPacket::~DecoderPacket() { |
| 97 av_buffer_unref(&av_buffer_ref_); |
| 98 } |
| 99 |
| 100 void FfmpegDecoderBase::DecoderPacket::Release() { |
| 101 delete this; |
| 102 } |
| 103 |
| 96 } // namespace media | 104 } // namespace media |
| 97 } // namespace mojo | 105 } // namespace mojo |
| OLD | NEW |