]> git.nihav.org Git - nihav.git/commitdiff
core/scale: fix unpacking condition
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 22 Nov 2019 12:00:43 +0000 (13:00 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 22 Nov 2019 12:00:43 +0000 (13:00 +0100)
nihav-core/src/scale/mod.rs

index 9cd6b8d8cc40b2b8e0db9d8003a507802c1b29d5..d878c4c0041ef4643b90666ec79973000ac05ede 100644 (file)
@@ -163,7 +163,7 @@ println!("convert {} -> {}", ifmt, ofmt);
         } else {
             !just_convert
         };
-    let needs_unpack = needs_scale || !ifmt.fmt.is_unpacked();
+    let needs_unpack = !ifmt.fmt.is_unpacked();
     let needs_pack = !ofmt.fmt.is_unpacked();
     let needs_convert = inname != outname;
     let scale_before_cvt = is_better_fmt(&ifmt, &ofmt) && needs_convert