aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword25/fmv/theora_decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/fmv/theora_decoder.cpp b/engines/sword25/fmv/theora_decoder.cpp
index 9aa7ead385..7957cb0274 100644
--- a/engines/sword25/fmv/theora_decoder.cpp
+++ b/engines/sword25/fmv/theora_decoder.cpp
@@ -383,7 +383,7 @@ const Graphics::Surface *TheoraDecoder::decodeNextFrame() {
}
} else {
// If we can't get any more frames, we're done.
- if (_theoraOut.e_o_s) {
+ if (_theoraOut.e_o_s || _fileStream->eos()) {
_endOfVideo = true;
break;
}
@@ -406,7 +406,7 @@ const Graphics::Surface *TheoraDecoder::decodeNextFrame() {
queuePage(&_oggPage);
bool queuedAudio = queueAudio();
- if (_vorbisOut.e_o_s && !queuedAudio) {
+ if ((_vorbisOut.e_o_s || _fileStream->eos()) && !queuedAudio) {
_endOfAudio = true;
break;
}