]> wimlib.net Git - wimlib/commitdiff
wimexport: Only keep chunk size if compression type unchanged
authorEric Biggers <ebiggers3@gmail.com>
Thu, 26 Dec 2013 23:11:28 +0000 (17:11 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 26 Dec 2013 23:11:28 +0000 (17:11 -0600)
programs/imagex.c

index 33274616d6604700058f396c5d9f239aea898cec..fd634419eb96981aba7f74b4a2ab955142c591a2 100644 (file)
@@ -2547,7 +2547,9 @@ imagex_export(int argc, tchar **argv, int cmd)
                if (ret)
                        goto out_free_src_wim;
 
-               wimlib_set_output_chunk_size(dest_wim, src_info.chunk_size);
+               /* Use same chunk size if compression type is the same.  */
+               if (compression_type == src_info.compression_type)
+                       wimlib_set_output_chunk_size(dest_wim, src_info.chunk_size);
        }
 
        image = wimlib_resolve_image(src_wim, src_image_num_or_name);