From e9d8cce7d0f15f39104719bbd220afea881e3fdb Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 22 Nov 2019 13:00:43 +0100 Subject: [PATCH] core/scale: fix unpacking condition --- nihav-core/src/scale/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-core/src/scale/mod.rs b/nihav-core/src/scale/mod.rs index 9cd6b8d..d878c4c 100644 --- a/nihav-core/src/scale/mod.rs +++ b/nihav-core/src/scale/mod.rs @@ -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 -- 2.39.5