diff options
author | D G Turner | 2017-01-16 17:39:32 +0000 |
---|---|---|
committer | D G Turner | 2017-01-16 17:39:32 +0000 |
commit | 60867811ccc6d0b7d0e5dbb4ad92883a9a59657c (patch) | |
tree | 84da119a8644bf6ad0f63a251fd31c4797a2fbc2 /engines | |
parent | 7a14f199eaef7aa29639b936efd0997a1e88fe66 (diff) | |
download | scummvm-rg350-60867811ccc6d0b7d0e5dbb4ad92883a9a59657c.tar.gz scummvm-rg350-60867811ccc6d0b7d0e5dbb4ad92883a9a59657c.tar.bz2 scummvm-rg350-60867811ccc6d0b7d0e5dbb4ad92883a9a59657c.zip |
TITANIC: Fix Several Valgrind Warnings.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/support/avi_surface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index 36a5891f0d..f8a6440be8 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -47,6 +47,7 @@ AVISurface::AVISurface(const CResourceKey &key) : _movieName(key.getString()) { // since it needs to be able to go beyond the frame count or to negative to allow // correct detection of when range playbacks have finished _currentFrame = -1; + _priorFrame = -1; _isReversed = false; // Create a decoder @@ -55,6 +56,10 @@ AVISurface::AVISurface(const CResourceKey &key) : _movieName(key.getString()) { error("Could not open video - %s", key.getString().c_str()); _streamCount = _decoder->videoTrackCount(); + + _soundManager = nullptr; + _hasAudio = false; + _frameRate = 0.0; } AVISurface::~AVISurface() { |