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

Side by Side Diff: media/filters/bitstream_converter.cc

Issue 555087: Refactor some code that depends on FFmpeg (Closed)
Patch Set: 2010 Created 10 years, 11 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
« no previous file with comments | « media/ffmpeg/file_protocol.cc ('k') | media/filters/bitstream_converter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/bitstream_converter.h" 5 #include "media/filters/bitstream_converter.h"
6 6
7 #include "media/filters/ffmpeg_common.h" 7 #include "media/ffmpeg/ffmpeg_common.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 FFmpegBitstreamConverter::FFmpegBitstreamConverter( 11 FFmpegBitstreamConverter::FFmpegBitstreamConverter(
12 const std::string& filter_name, 12 const std::string& filter_name,
13 AVCodecContext* stream_context) 13 AVCodecContext* stream_context)
14 : filter_name_(filter_name), 14 : filter_name_(filter_name),
15 stream_filter_(NULL), 15 stream_filter_(NULL),
16 stream_context_(stream_context) { 16 stream_context_(stream_context) {
17 CHECK(stream_context_); 17 CHECK(stream_context_);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 av_free_packet(packet); 59 av_free_packet(packet);
60 packet->data = converted_data; 60 packet->data = converted_data;
61 packet->size = converted_size; 61 packet->size = converted_size;
62 packet->destruct = av_destruct_packet; 62 packet->destruct = av_destruct_packet;
63 } 63 }
64 64
65 return true; 65 return true;
66 } 66 }
67 67
68 } // namespace media 68 } // namespace media
OLDNEW
« no previous file with comments | « media/ffmpeg/file_protocol.cc ('k') | media/filters/bitstream_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698