From: Kostya Shishkov Date: Mon, 17 Oct 2022 16:07:50 +0000 (+0200) Subject: legend-q: support version 6 X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=f27ea035cd317d711af90655d8ced4b64544b541;p=nihav.git legend-q: support version 6 --- 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 };