diff options
Diffstat (limited to 'graphics/video/qt_decoder.cpp')
-rw-r--r-- | graphics/video/qt_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/video/qt_decoder.cpp b/graphics/video/qt_decoder.cpp index b8dc4c3d11..2e18050db1 100644 --- a/graphics/video/qt_decoder.cpp +++ b/graphics/video/qt_decoder.cpp @@ -242,7 +242,7 @@ const Surface *QuickTimeDecoder::decodeNextFrame() { if (!entry->videoCodec) return 0; - Surface *frame = entry->videoCodec->decodeImage(frameData); + const Surface *frame = entry->videoCodec->decodeImage(frameData); delete frameData; // Update the palette in case it changes between video descriptions @@ -256,7 +256,7 @@ const Surface *QuickTimeDecoder::decodeNextFrame() { return scaleSurface(frame); } -Surface *QuickTimeDecoder::scaleSurface(Surface *frame) { +const Surface *QuickTimeDecoder::scaleSurface(const Surface *frame) { if (getScaleFactorX() == 1 && getScaleFactorY() == 1) return frame; |