From f27ea035cd317d711af90655d8ced4b64544b541 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 17 Oct 2022 18:07:50 +0200 Subject: [PATCH] legend-q: support version 6 --- nihav-game/src/codecs/q.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nihav-game/src/codecs/q.rs b/nihav-game/src/codecs/q.rs index a884950..9e51832 100644 --- a/nihav-game/src/codecs/q.rs +++ b/nihav-game/src/codecs/q.rs @@ -677,6 +677,7 @@ impl NADecoder for QVideoDecoder { self.mode = match self.version { 4 => 6, 5 => 7, + 6 => 7, 7 => 7, _ => 0, }; @@ -721,7 +722,7 @@ impl NADecoder for QVideoDecoder { } if self.version == 3 { self.decode_frame_v3(&mut br, ctype)?; - } else if self.version < 7 { + } else if self.version < 6 { self.decode_frame_5(&mut br, ctype)?; } else { self.mode = if ctype == 11 { 7 } else { 6 }; -- 2.39.5