Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: services/media/framework_ffmpeg/ffmpeg_decoder_base.cc

Issue 2077413003: Motown: Various fixes related to video playback support (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Comments and name changes for clarity. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/media/framework_ffmpeg/ffmpeg_decoder_base.h ('k') | services/media/framework_ffmpeg/ffmpeg_demux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698