aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
authorSven Hesse2009-11-30 02:00:42 +0000
committerSven Hesse2009-11-30 02:00:42 +0000
commitc7305331eebd2e97160024ec54f4fc4282d5db2a (patch)
tree44bfbf31c4428d538c8ad898d22f01927fb28427 /graphics/video
parent8ede0caf72b82dd7cf211428fdb5985ca72c0a28 (diff)
downloadscummvm-rg350-c7305331eebd2e97160024ec54f4fc4282d5db2a.tar.gz
scummvm-rg350-c7305331eebd2e97160024ec54f4fc4282d5db2a.tar.bz2
scummvm-rg350-c7305331eebd2e97160024ec54f4fc4282d5db2a.zip
Only print sound information if there actually is sound (preventing a division by 0 exception)
svn-id: r46210
Diffstat (limited to 'graphics/video')
-rw-r--r--graphics/video/avi_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/video/avi_decoder.cpp b/graphics/video/avi_decoder.cpp
index 463a4eaccc..bb80cdd253 100644
--- a/graphics/video/avi_decoder.cpp
+++ b/graphics/video/avi_decoder.cpp
@@ -247,7 +247,7 @@ bool AviDecoder::loadFile(const char *fileName) {
debug (0, "Frames = %d, Dimensions = %d x %d", _header.totalFrames, _header.width, _header.height);
debug (0, "Frame Rate = %d", getFrameRate());
- if (_header.flags & AVIF_ISINTERLEAVED)
+ if ((_audsHeader.scale != 0) && (_header.flags & AVIF_ISINTERLEAVED))
debug (0, "Sound Rate = %d", AUDIO_RATE);
debug (0, "Video Codec = \'%s\'", tag2str(_vidsHeader.streamHandler));