diff options
author | Paul Gilbert | 2016-10-28 22:59:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-28 22:59:17 -0400 |
commit | 4740f16b7f2b964d9c7cde2e0856f408c912ecdd (patch) | |
tree | 55a26c0bfa0d2035d5669c9d3c77a28a2ff7aaa4 /engines/titanic | |
parent | a6477a8606d9b250744e0fba7ddaa81cc206729b (diff) | |
download | scummvm-rg350-4740f16b7f2b964d9c7cde2e0856f408c912ecdd.tar.gz scummvm-rg350-4740f16b7f2b964d9c7cde2e0856f408c912ecdd.tar.bz2 scummvm-rg350-4740f16b7f2b964d9c7cde2e0856f408c912ecdd.zip |
TITANIC: Fix playing cutscenes to the very of a video
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/support/avi_surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index 8d89ef71df..c88c89c6e9 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -371,7 +371,7 @@ void AVISurface::playCutscene(const Rect &r, uint startFrame, uint endFrame) { _movieFrameSurface[0]->h != r.height(); startAtFrame(startFrame); - while (_currentFrame < (int)endFrame && !g_vm->shouldQuit()) { + while (!_decoder->endOfVideo() && _currentFrame < (int)endFrame && !g_vm->shouldQuit()) { if (isNextFrame()) { renderFrame(); _currentFrame = _decoder->getCurFrame(); |