summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-02-21 22:28:31 +0100
committerCarl Hetherington <cth@carlh.net>2025-02-23 00:28:58 +0100
commitcb5b8b1d7585ab0134ce8a496110af473c95a25a (patch)
tree1389d8226e521ec6bd6a0cc6fb84cec28c45e36f /src
parent6e5b5f763a18f3473b1b49a755bfc5adb8777ff8 (diff)
Make picture details checks optional.v1.10.12
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc6
-rw-r--r--src/verify.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 5ea5dfd4..458883d5 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -557,8 +557,10 @@ verify_main_picture_asset(Context& context, shared_ptr<const ReelPictureAsset> r
}
}
- context.stage("Checking picture frame sizes", asset->file());
- verify_picture_details(context, reel_asset, file, start_frame);
+ if (context.options.check_picture_details) {
+ context.stage("Checking picture asset details", asset->file());
+ verify_picture_details(context, reel_asset, file, start_frame);
+ }
/* Only flat/scope allowed by Bv2.1 */
if (
diff --git a/src/verify.h b/src/verify.h
index 10a798d4..c9df2781 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -702,6 +702,8 @@ struct VerificationOptions
///< true to check asset hashes (except those which match maximum_asset_size_for_hash_check)
///< false to check no asset hashes.
bool check_asset_hashes = true;
+ ///< true to do some time-consuming detailed picture checks (e.g. J2K bitstream)
+ bool check_picture_details = true;
};