mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 04:01:03 +00:00
Warn instead of crash when a video frame part was found although the header says there's no video
svn-id: r42286
This commit is contained in:
parent
22a48e6c39
commit
8a7a81ed30
@ -1324,7 +1324,9 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {
|
||||
_stream->skip(part.size);
|
||||
}
|
||||
|
||||
} else if (part.type == kPartTypeVideo) {
|
||||
} else if ((part.type == kPartTypeVideo) && !_hasVideo) {
|
||||
warning("Header claims there's no video, but video frame part found");
|
||||
} else if ((part.type == kPartTypeVideo) && _hasVideo) {
|
||||
state.flags &= ~kStateNoVideoData;
|
||||
|
||||
uint32 size = part.size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user