summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 09:41:38 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 09:41:38 +0000
commit4185b780b381831683966784ad26be19dc14d0f9 (patch)
treefa5e7116eb97d719edcc2b3b405eb0620792a32e /media
parent70382c682db28b8a53241f8504d4505a3e2140db (diff)
downloadchromium_src-4185b780b381831683966784ad26be19dc14d0f9.zip
chromium_src-4185b780b381831683966784ad26be19dc14d0f9.tar.gz
chromium_src-4185b780b381831683966784ad26be19dc14d0f9.tar.bz2
Initialize member var.
BUG=None TEST=None CID=12547 Review URL: http://codereview.chromium.org/3190001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/filters/ffmpeg_video_decode_engine.cc3
-rw-r--r--media/filters/video_decode_engine.h8
2 files changed, 8 insertions, 3 deletions
diff --git a/media/filters/ffmpeg_video_decode_engine.cc b/media/filters/ffmpeg_video_decode_engine.cc
index 3cc8fbd..b054f7e91 100644
--- a/media/filters/ffmpeg_video_decode_engine.cc
+++ b/media/filters/ffmpeg_video_decode_engine.cc
@@ -19,7 +19,8 @@ namespace media {
FFmpegVideoDecodeEngine::FFmpegVideoDecodeEngine()
: codec_context_(NULL),
- av_stream_(NULL) {
+ av_stream_(NULL),
+ event_handler_(NULL) {
}
FFmpegVideoDecodeEngine::~FFmpegVideoDecodeEngine() {
diff --git a/media/filters/video_decode_engine.h b/media/filters/video_decode_engine.h
index 6e51c1c..96872de 100644
--- a/media/filters/video_decode_engine.h
+++ b/media/filters/video_decode_engine.h
@@ -25,8 +25,12 @@ static const uint32 kProfileDoNotCare = static_cast<uint32>(-1);
static const uint32 kLevelDoNotCare = static_cast<uint32>(-1);
struct VideoCodecConfig {
- VideoCodecConfig() : profile_(kProfileDoNotCare),
- level_(kLevelDoNotCare) {}
+ VideoCodecConfig() : codec_(kCodecH264),
+ profile_(kProfileDoNotCare),
+ level_(kLevelDoNotCare),
+ width_(0),
+ height_(0),
+ opaque_context_(NULL) {}
VideoCodec codec_;