From 358160743d23ed4513c3b4bcf40fdc5b7d1b15d6 Mon Sep 17 00:00:00 2001 From: Aous Naman Date: Fri, 1 Nov 2024 22:16:19 +1100 Subject: [PATCH] ojph_compress for pfm does not need bit_depth --- src/apps/ojph_compress/ojph_compress.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/apps/ojph_compress/ojph_compress.cpp b/src/apps/ojph_compress/ojph_compress.cpp index e7c047a..9dbdefb 100644 --- a/src/apps/ojph_compress/ojph_compress.cpp +++ b/src/apps/ojph_compress/ojph_compress.cpp @@ -768,10 +768,6 @@ int main(int argc, char * argv[]) { assert(num_comps == 1 || num_comps == 3); siz.set_num_components(num_comps); - if (bit_depth[0] == 0) - OJPH_ERROR(0x01000091, - "-bit_depth must be specified (this is temporary only).\n"); - if (bit_depth[0] != 0) // one was set if (num_bit_depths < num_comps) // but if not enough, repeat for (ojph::ui32 c = num_bit_depths; c < num_comps; ++c)