aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-10-17 18:07:50 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-10-17 18:07:50 +0200
commitf27ea035cd317d711af90655d8ced4b64544b541 (patch)
tree5566e7530b8c9b36eed2dc3f9616ce6799c1eaec
parentff6a914f5b07a9c62d7624fb6dd9f1fc093e82ca (diff)
downloadnihav-f27ea035cd317d711af90655d8ced4b64544b541.tar.gz
legend-q: support version 6
-rw-r--r--nihav-game/src/codecs/q.rs3
1 files changed, 2 insertions, 1 deletions
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 };