aboutsummaryrefslogtreecommitdiff
path: root/video/codecs/svq1.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-04-05 08:30:18 -0400
committerD G Turner2012-04-08 03:29:32 +0100
commit1ca81ee6ecff15c843c04a51c8757be5a685edc2 (patch)
treeae0946dc9b9a5a8cf85027269a97a2118f28293d /video/codecs/svq1.cpp
parent7109e26d04a90b718ad2ed635e0aeb35b011abd7 (diff)
downloadscummvm-rg350-1ca81ee6ecff15c843c04a51c8757be5a685edc2.tar.gz
scummvm-rg350-1ca81ee6ecff15c843c04a51c8757be5a685edc2.tar.bz2
scummvm-rg350-1ca81ee6ecff15c843c04a51c8757be5a685edc2.zip
VIDEO: Rework SVQ1 codebooks so they're endian-safe
Diffstat (limited to 'video/codecs/svq1.cpp')
-rw-r--r--video/codecs/svq1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/codecs/svq1.cpp b/video/codecs/svq1.cpp
index f19625bf64..22e267eff5 100644
--- a/video/codecs/svq1.cpp
+++ b/video/codecs/svq1.cpp
@@ -438,7 +438,7 @@ int SVQ1Decoder::svq1DecodeBlockIntra(Common::BitStream *s, uint8 *pixels, int p
}
} else {
// SVQ1_CALC_CODEBOOK_ENTRIES(svq1_intra_codebooks);
- const uint32 *codebook = (const uint32 *) svq1_intra_codebooks[level];
+ const uint32 *codebook = s_svq1IntraCodebooks[level];
uint32 bit_cache = s->getBits(4*stages);
// calculate codebook entries for this vector
for (j=0; j < stages; j++) {
@@ -534,7 +534,7 @@ int SVQ1Decoder::svq1DecodeBlockNonIntra(Common::BitStream *s, uint8 *pixels, in
mean = _interMean->getSymbol(*s) - 256;
// SVQ1_CALC_CODEBOOK_ENTRIES(svq1_inter_codebooks);
- const uint32 *codebook = (const uint32 *) svq1_inter_codebooks[level];
+ const uint32 *codebook = s_svq1InterCodebooks[level];
uint32 bit_cache = s->getBits(4*stages);
// calculate codebook entries for this vector
for (j=0; j < stages; j++) {