diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-02-23 17:53:43 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-02-23 17:53:43 +0100 |
commit | 2931e237d609968086a560eb2f9c7beaf320e44b (patch) | |
tree | 7a8ffbe3759a543f72174c052c7ad1f271a9d069 | |
parent | 10dedf0d7c3c2fd9b101881ae6a01e6338a958e1 (diff) | |
download | nihav-2931e237d609968086a560eb2f9c7beaf320e44b.tar.gz |
cinepakenc: fix detection of codebook changed part
-rw-r--r-- | nihav-commonfmt/src/codecs/cinepakenc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-commonfmt/src/codecs/cinepakenc.rs b/nihav-commonfmt/src/codecs/cinepakenc.rs index 4729cd6..28f9c93 100644 --- a/nihav-commonfmt/src/codecs/cinepakenc.rs +++ b/nihav-commonfmt/src/codecs/cinepakenc.rs @@ -391,7 +391,7 @@ impl CinepakEncoder { } } else { let mut end = 256; - for (i, (ncw, ocw)) in new_cb.iter().rev().zip(old_cb.iter().rev()).enumerate() { + for (i, (ncw, ocw)) in new_cb.iter().zip(old_cb.iter()).enumerate().rev() { if ncw == ocw { end = i; } else { |