aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/groovie/roq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp
index 8da8671b5d..baf42a7679 100644
--- a/engines/groovie/roq.cpp
+++ b/engines/groovie/roq.cpp
@@ -437,9 +437,9 @@ bool ROQPlayer::processBlockStill(ROQBlockHeader &blockHeader) {
Graphics::JPEGDecoder *jpg = new Graphics::JPEGDecoder();
jpg->loadStream(*_file);
- byte *y = (byte *)jpg->getComponent(1)->getBasePtr(0, 0);
- byte *u = (byte *)jpg->getComponent(2)->getBasePtr(0, 0);
- byte *v = (byte *)jpg->getComponent(3)->getBasePtr(0, 0);
+ const byte *y = (const byte *)jpg->getComponent(1)->getBasePtr(0, 0);
+ const byte *u = (const byte *)jpg->getComponent(2)->getBasePtr(0, 0);
+ const byte *v = (const byte *)jpg->getComponent(3)->getBasePtr(0, 0);
byte *ptr = (byte *)_currBuf->getBasePtr(0, 0);
for (int i = 0; i < _currBuf->w * _currBuf->h; i++) {