aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
authorArnaud Boutonné2010-02-06 22:47:13 +0000
committerArnaud Boutonné2010-02-06 22:47:13 +0000
commitceba3a6ce9481e08ccb51b2910b251c99541a9ac (patch)
treed9fa161686826b11adcabd499c585a35d987f319 /graphics/video
parent67870c7dc887b4e32067be0c6eb41ef6fe7db7ec (diff)
downloadscummvm-rg350-ceba3a6ce9481e08ccb51b2910b251c99541a9ac.tar.gz
scummvm-rg350-ceba3a6ce9481e08ccb51b2910b251c99541a9ac.tar.bz2
scummvm-rg350-ceba3a6ce9481e08ccb51b2910b251c99541a9ac.zip
Add an assert to avoid a crash when printing the character 0x00.
svn-id: r47944
Diffstat (limited to 'graphics/video')
-rw-r--r--graphics/video/coktelvideo/coktelvideo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/video/coktelvideo/coktelvideo.cpp b/graphics/video/coktelvideo/coktelvideo.cpp
index 7092826bf8..12ba33a8ab 100644
--- a/graphics/video/coktelvideo/coktelvideo.cpp
+++ b/graphics/video/coktelvideo/coktelvideo.cpp
@@ -271,27 +271,32 @@ bool Imd::load(Common::SeekableReadStream &stream) {
_stream->read((byte *) _palette, 768);
if (!loadCoordinates()) {
+ warning("Imd::load(): loadCoordinates failed");
unload();
return false;
}
uint32 framesPosPos, frameCoordsPos;
if (!loadFrameTableOffsets(framesPosPos, frameCoordsPos)) {
+ warning("Imd::load(): loadFrameTableOffsets failed");
unload();
return false;
}
if (!assessAudioProperties()) {
+ warning("Imd::load(): assessAudioProperties failed");
unload();
return false;
}
if (!assessVideoProperties()) {
+ warning("Imd::load(): assessVideoProperties failed");
unload();
return false;
}
if (!loadFrameTables(framesPosPos, frameCoordsPos)) {
+ warning("Imd::load(): loadFrameTables failed");
unload();
return false;
}