aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-commonfmt/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-06-15 14:37:15 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-06-15 14:37:15 +0200
commit1047e98335ad782b48bcc88e9277336576c20597 (patch)
tree44366fe07f2851c1d607b5c3a56fd1e11dffa7ac /nihav-commonfmt/src
parentb954eb8bcb1da75398dce9707cd4ea6bf8c49807 (diff)
downloadnihav-1047e98335ad782b48bcc88e9277336576c20597.tar.gz
cinepakenc: fix V1-only intra mode
Diffstat (limited to 'nihav-commonfmt/src')
-rw-r--r--nihav-commonfmt/src/codecs/cinepakenc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/nihav-commonfmt/src/codecs/cinepakenc.rs b/nihav-commonfmt/src/codecs/cinepakenc.rs
index a77e58a..882b637 100644
--- a/nihav-commonfmt/src/codecs/cinepakenc.rs
+++ b/nihav-commonfmt/src/codecs/cinepakenc.rs
@@ -707,10 +707,10 @@ impl CinepakEncoder {
self.render_stripe(true, start_line, end_line);
- if self.v1_idx.len() == 0 {
+ if self.v4_idx.len() == 0 {
bw.write_byte(0x32)?;
- bw.write_u24be((self.v4_idx.len() + 4) as u32)?;
- bw.write_buf(self.v4_idx.as_slice())?;
+ bw.write_u24be((self.v1_idx.len() + 4) as u32)?;
+ bw.write_buf(self.v1_idx.as_slice())?;
} else {
bw.write_byte(0x30)?;
bw.write_u24be(0)?;