Fix incorrect error code (2K when it should be 4K). v1.8.1
authorCarl Hetherington <cth@carlh.net>
Tue, 5 Oct 2021 23:17:52 +0000 (01:17 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 5 Oct 2021 23:17:52 +0000 (01:17 +0200)
src/verify_j2k.cc

index 2e1255ea5777e8b1d29a7c04cda1dc4539fdf6af..48d85a332700bb6aef08c317f2b7e259db9dd3d2 100644 (file)
@@ -209,7 +209,7 @@ dcp::verify_j2k (shared_ptr<const Data> j2k, vector<VerificationNote>& notes)
                                        notes.push_back ({ VerificationNote::Type::BV21_ERROR, VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_2K, raw_convert<string>(tile_parts) });
                                }
                                if (fourk && tile_parts != 6) {
-                                       notes.push_back ({ VerificationNote::Type::BV21_ERROR, VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_2K, raw_convert<string>(tile_parts) });
+                                       notes.push_back ({ VerificationNote::Type::BV21_ERROR, VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_4K, raw_convert<string>(tile_parts) });
                                }
                                main_header_finished = true;
                        } else if (*marker_name == "SOD") {