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

Side by Side Diff: media/base/video_decoder_config.cc

Issue 2448763002: FFmpegDemuxer: Clear |extra_data| when enabling bitstream conversion. (Closed)
Patch Set: Created 4 years, 1 month 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/base/video_decoder_config.h ('k') | media/filters/ffmpeg_demuxer.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) 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/base/video_decoder_config.h" 5 #include "media/base/video_decoder_config.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const EncryptionScheme& encryption_scheme) { 61 const EncryptionScheme& encryption_scheme) {
62 Initialize(codec, profile, format, color_space, coded_size, visible_rect, 62 Initialize(codec, profile, format, color_space, coded_size, visible_rect,
63 natural_size, extra_data, encryption_scheme); 63 natural_size, extra_data, encryption_scheme);
64 } 64 }
65 65
66 VideoDecoderConfig::VideoDecoderConfig(const VideoDecoderConfig& other) = 66 VideoDecoderConfig::VideoDecoderConfig(const VideoDecoderConfig& other) =
67 default; 67 default;
68 68
69 VideoDecoderConfig::~VideoDecoderConfig() {} 69 VideoDecoderConfig::~VideoDecoderConfig() {}
70 70
71 void VideoDecoderConfig::set_extra_data(
DaleCurtis 2016/10/25 00:18:46 Must be inlined to use hacker_style(). We have no
sandersd (OOO until July 31) 2016/10/25 20:58:41 Done.
72 const std::vector<uint8_t>& extra_data) {
73 extra_data_ = extra_data;
74 }
75
71 void VideoDecoderConfig::set_color_space_info( 76 void VideoDecoderConfig::set_color_space_info(
72 const gfx::ColorSpace& color_space_info) { 77 const gfx::ColorSpace& color_space_info) {
73 color_space_info_ = color_space_info; 78 color_space_info_ = color_space_info;
74 } 79 }
75 80
76 gfx::ColorSpace VideoDecoderConfig::color_space_info() const { 81 gfx::ColorSpace VideoDecoderConfig::color_space_info() const {
77 return color_space_info_; 82 return color_space_info_;
78 } 83 }
79 84
80 void VideoDecoderConfig::set_hdr_metadata(const HDRMetadata& hdr_metadata) { 85 void VideoDecoderConfig::set_hdr_metadata(const HDRMetadata& hdr_metadata) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 << " visible rect: [" << visible_rect().x() << "," << visible_rect().y() 151 << " visible rect: [" << visible_rect().x() << "," << visible_rect().y()
147 << "," << visible_rect().width() << "," << visible_rect().height() << "]" 152 << "," << visible_rect().width() << "," << visible_rect().height() << "]"
148 << " natural size: [" << natural_size().width() << "," 153 << " natural size: [" << natural_size().width() << ","
149 << natural_size().height() << "]" 154 << natural_size().height() << "]"
150 << " has extra data? " << (extra_data().empty() ? "false" : "true") 155 << " has extra data? " << (extra_data().empty() ? "false" : "true")
151 << " encrypted? " << (is_encrypted() ? "true" : "false"); 156 << " encrypted? " << (is_encrypted() ? "true" : "false");
152 return s.str(); 157 return s.str();
153 } 158 }
154 159
155 } // namespace media 160 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_decoder_config.h ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698