diff --git a/source/Tier2/truncate_codestream.m b/source/Tier2/truncate_codestream.m index 0db0f81..f495180 100644 --- a/source/Tier2/truncate_codestream.m +++ b/source/Tier2/truncate_codestream.m @@ -252,7 +252,7 @@ function truncate_codestream(hTile, main_header, g_target_rate) if hCodeblock.num_passes > 0 cpb.is_zero_length = false; end - if is_finish == false + if is_finish == false && hCodeblock.Cmodes < 64 hCodeblock.copy_from_vCodeblock(vCodeblock); end end