dcpdiff option to allow issue dates to differ.
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Jul 2017 12:32:07 +0000 (13:32 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Jul 2017 12:32:07 +0000 (13:32 +0100)
tools/dcpdiff.cc

index 1818f2b60637d8e5e5270d568063fb0c0b388e9f..af0e18548419a51a989d40f3b7a3c32b73a80398 100644 (file)
@@ -63,6 +63,7 @@ help (string n)
             << "      --cpl-annotation-texts   allow differing CPL annotation texts\n"
             << "      --reel-annotation-texts  allow differing reel annotation texts\n"
             << "  -a, --annotation-texts       allow different CPL and reel annotation texts\n"
+            << "  -d, --issue-dates            allow different issue dates\n"
             << "  -m, --mean-pixel             maximum allowed mean pixel error (default 5)\n"
             << "  -s, --std-dev-pixel          maximum allowed standard deviation of pixel error (default 5)\n"
             << "      --key                    hexadecimal key to use to decrypt MXFs\n"
@@ -136,6 +137,7 @@ main (int argc, char* argv[])
                        { "std-dev-pixel", required_argument, 0, 's'},
                        { "keep-going", no_argument, 0, 'k'},
                        { "annotation-texts", no_argument, 0, 'a'},
+                       { "issue-dates", no_argument, 0, 'd'},
                        /* From here we're using random capital letters for the short option */
                        { "ignore-missing-assets", no_argument, 0, 'A'},
                        { "cpl-annotation-texts", no_argument, 0, 'C'},
@@ -144,7 +146,7 @@ main (int argc, char* argv[])
                        { 0, 0, 0, 0 }
                };
 
-               int c = getopt_long (argc, argv, "Vhvm:s:kaACD:E", long_options, &option_index);
+               int c = getopt_long (argc, argv, "Vhvm:s:kadACD:E", long_options, &option_index);
 
                if (c == -1) {
                        break;
@@ -172,6 +174,9 @@ main (int argc, char* argv[])
                case 'a':
                        options.cpl_annotation_texts_can_differ = options.reel_annotation_texts_can_differ = true;
                        break;
+               case 'd':
+                       options.issue_dates_can_differ = true;
+                       break;
                case 'A':
                        ignore_missing_assets = true;
                        break;