]> git.nihav.org Git - nihav.git/commitdiff
legend-q: support version 6
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 17 Oct 2022 16:07:50 +0000 (18:07 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 17 Oct 2022 16:07:50 +0000 (18:07 +0200)
nihav-game/src/codecs/q.rs

index a884950c4135835de7877d469b58d82e2925f264..9e51832a22900da57addf83d4127199dca9ff57c 100644 (file)
@@ -677,6 +677,7 @@ impl NADecoder for QVideoDecoder {
             self.mode = match self.version {
                     4 => 6,
                     5 => 7,
             self.mode = match self.version {
                     4 => 6,
                     5 => 7,
+                    6 => 7,
                     7 => 7,
                     _ => 0,
                 };
                     7 => 7,
                     _ => 0,
                 };
@@ -721,7 +722,7 @@ impl NADecoder for QVideoDecoder {
                     }
                     if self.version == 3 {
                         self.decode_frame_v3(&mut br, ctype)?;
                     }
                     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 };
                         self.decode_frame_5(&mut br, ctype)?;
                     } else {
                         self.mode = if ctype == 11 { 7 } else { 6 };