diff options
author | Eric Fry | 2018-04-29 13:41:20 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 2d836d4ec0f0b13c340e48aeafb651008c6771c3 (patch) | |
tree | 304b1d5cbb2b047f28e00c38e76d5ddfc7b0b080 /video | |
parent | 6ae95550864e126f3e8634183f32ac831ace5d5f (diff) | |
download | scummvm-rg350-2d836d4ec0f0b13c340e48aeafb651008c6771c3.tar.gz scummvm-rg350-2d836d4ec0f0b13c340e48aeafb651008c6771c3.tar.bz2 scummvm-rg350-2d836d4ec0f0b13c340e48aeafb651008c6771c3.zip |
VIDEO: Warn instead of error when unhandled TXTS stream found in AVI
Diffstat (limited to 'video')
-rw-r--r-- | video/avi_decoder.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/avi_decoder.cpp b/video/avi_decoder.cpp index 7d182935c1..a42c8e28c6 100644 --- a/video/avi_decoder.cpp +++ b/video/avi_decoder.cpp @@ -266,9 +266,12 @@ void AVIDecoder::handleStreamHeader(uint32 size) { sHeader.size = size; sHeader.streamType = _fileStream->readUint32BE(); - if (sHeader.streamType == ID_MIDS || sHeader.streamType == ID_TXTS) + if (sHeader.streamType == ID_MIDS) error("Unhandled MIDI/Text stream"); + if (sHeader.streamType == ID_TXTS) + warning("Unsupported Text stream detected"); + sHeader.streamHandler = _fileStream->readUint32BE(); sHeader.flags = _fileStream->readUint32LE(); sHeader.priority = _fileStream->readUint16LE(); |