aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman/duckman_videoplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/illusions/duckman/duckman_videoplayer.cpp')
-rw-r--r--engines/illusions/duckman/duckman_videoplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/illusions/duckman/duckman_videoplayer.cpp b/engines/illusions/duckman/duckman_videoplayer.cpp
index ae17d32381..b2ccd630b9 100644
--- a/engines/illusions/duckman/duckman_videoplayer.cpp
+++ b/engines/illusions/duckman/duckman_videoplayer.cpp
@@ -69,7 +69,7 @@ void DuckmanVideoPlayer::update() {
} else if (_videoDecoder->needsUpdate()) {
const Graphics::Surface *frame = _videoDecoder->decodeNextFrame();
Graphics::Surface *backSurface = _vm->_screen->getBackSurface();
- if (frame->format.bytesPerPixel == g_system->getScreenFormat().bytesPerPixel) {
+ if (frame && frame->format.bytesPerPixel == g_system->getScreenFormat().bytesPerPixel) {
const int width = MIN(frame->w, backSurface->w);
const int height = MIN(frame->h, backSurface->h);
const byte *src = (const byte*)frame->getPixels();