From 49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sat, 19 Oct 2019 20:29:56 +0200 Subject: CRYOMNI3D: Fix default cases to raise errors --- engines/cryomni3d/video/hnm_decoder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/cryomni3d/video') diff --git a/engines/cryomni3d/video/hnm_decoder.cpp b/engines/cryomni3d/video/hnm_decoder.cpp index bd548e4294..e139f99716 100644 --- a/engines/cryomni3d/video/hnm_decoder.cpp +++ b/engines/cryomni3d/video/hnm_decoder.cpp @@ -286,10 +286,12 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframe(Common::SeekableReadStream *st currentPos += width; break; case 3: - default: // End of picture eop = true; break; + default: + error("BUG: Shouldn't be here"); + break; } } else { if (size < 2) { -- cgit v1.2.3