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:
Sven Hesse 2009-07-09 09:39:51 +00:00
parent 22a48e6c39
commit 8a7a81ed30

View File

@ -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;