aboutsummaryrefslogtreecommitdiff
path: root/sound/decoders/raw.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-02-03 15:45:54 +0000
committerJohannes Schickel2010-02-03 15:45:54 +0000
commit6312b690de2cdda07b158fcffab35c02afaae92b (patch)
treeb2fd34c2317ec51ed430c65096d7caa9e0a5855b /sound/decoders/raw.cpp
parent2cb82808ebb8b7b0c938cc20d5b9446182177459 (diff)
downloadscummvm-rg350-6312b690de2cdda07b158fcffab35c02afaae92b.tar.gz
scummvm-rg350-6312b690de2cdda07b158fcffab35c02afaae92b.tar.bz2
scummvm-rg350-6312b690de2cdda07b158fcffab35c02afaae92b.zip
Fix bug in RawStream::getLength for 16bit streams. (Uncovered by our new unit tests yay!)
svn-id: r47859
Diffstat (limited to 'sound/decoders/raw.cpp')
-rw-r--r--sound/decoders/raw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/decoders/raw.cpp b/sound/decoders/raw.cpp
index addad0a253..2d4da5c63d 100644
--- a/sound/decoders/raw.cpp
+++ b/sound/decoders/raw.cpp
@@ -99,7 +99,7 @@ public:
len += i->len;
}
- _playtime = Timestamp(0, len / (is16Bit ? 2 : 1) / (stereo ? 2 : 1), rate);
+ _playtime = Timestamp(0, len / (stereo ? 2 : 1), rate);
}