[Scummvm-cvs-logs] SF.net SVN: scummvm:[46210] scummvm/trunk/graphics/video/avi_decoder.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Mon Nov 30 03:00:43 CET 2009
Revision: 46210
http://scummvm.svn.sourceforge.net/scummvm/?rev=46210&view=rev
Author: drmccoy
Date: 2009-11-30 02:00:42 +0000 (Mon, 30 Nov 2009)
Log Message:
-----------
Only print sound information if there actually is sound (preventing a division by 0 exception)
Modified Paths:
--------------
scummvm/trunk/graphics/video/avi_decoder.cpp
Modified: scummvm/trunk/graphics/video/avi_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/avi_decoder.cpp 2009-11-30 01:58:15 UTC (rev 46209)
+++ scummvm/trunk/graphics/video/avi_decoder.cpp 2009-11-30 02:00:42 UTC (rev 46210)
@@ -247,7 +247,7 @@
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));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list