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

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

Issue 10948052: [Coverity] Fix uninitialized member (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 VideoDecoderConfig::VideoDecoderConfig() 12 VideoDecoderConfig::VideoDecoderConfig()
13 : codec_(kUnknownVideoCodec), 13 : codec_(kUnknownVideoCodec),
14 profile_(VIDEO_CODEC_PROFILE_UNKNOWN), 14 profile_(VIDEO_CODEC_PROFILE_UNKNOWN),
15 format_(VideoFrame::INVALID), 15 format_(VideoFrame::INVALID),
16 extra_data_size_(0) { 16 extra_data_size_(0),
17 is_encrypted_(false) {
17 } 18 }
18 19
19 VideoDecoderConfig::VideoDecoderConfig(VideoCodec codec, 20 VideoDecoderConfig::VideoDecoderConfig(VideoCodec codec,
20 VideoCodecProfile profile, 21 VideoCodecProfile profile,
21 VideoFrame::Format format, 22 VideoFrame::Format format,
22 const gfx::Size& coded_size, 23 const gfx::Size& coded_size,
23 const gfx::Rect& visible_rect, 24 const gfx::Rect& visible_rect,
24 const gfx::Size& natural_size, 25 const gfx::Size& natural_size,
25 const uint8* extra_data, 26 const uint8* extra_data,
26 size_t extra_data_size, 27 size_t extra_data_size,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 176
176 size_t VideoDecoderConfig::extra_data_size() const { 177 size_t VideoDecoderConfig::extra_data_size() const {
177 return extra_data_size_; 178 return extra_data_size_;
178 } 179 }
179 180
180 bool VideoDecoderConfig::is_encrypted() const { 181 bool VideoDecoderConfig::is_encrypted() const {
181 return is_encrypted_; 182 return is_encrypted_;
182 } 183 }
183 184
184 } // namespace media 185 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698