Try to fix build with OpenJPEG 1.x.
[libdcp.git] / tools / dcpinfo.cc
index 7bb5f1b3b83f98316db8a2a8213ed6538eeeb795..2779b76a5e24a090c3e27207e7e1568d55f01c47 100644 (file)
 
     You should have received a copy of the GNU General Public License
     along with libdcp.  If not, see <http://www.gnu.org/licenses/>.
+
+    In addition, as a special exception, the copyright holders give
+    permission to link the code of portions of this program with the
+    OpenSSL library under certain conditions as described in each
+    individual source file, and distribute linked combinations
+    including the two.
+
+    You must obey the GNU General Public License in all respects
+    for all of the code used other than OpenSSL.  If you modify
+    file(s) with this exception, you may extend this exception to your
+    version of the file(s), but you are not obligated to do so.  If you
+    do not wish to do so, delete this exception statement from your
+    version.  If you delete this exception statement from all source
+    files in the program, then also delete it here.
 */
 
 #include "dcp.h"
@@ -108,7 +122,7 @@ main (int argc, char* argv[])
        bool ignore_missing_assets = false;
 
        int option_index = 0;
-       while (1) {
+       while (true) {
                static struct option long_options[] = {
                        { "version", no_argument, 0, 'v' },
                        { "help", no_argument, 0, 'h' },
@@ -126,7 +140,7 @@ main (int argc, char* argv[])
 
                switch (c) {
                case 'v':
-                       cout << "dcpdiff version " << LIBDCP_VERSION << "\n";
+                       cout << "libdcp version " << LIBDCP_VERSION << "\n";
                        exit (EXIT_SUCCESS);
                case 'h':
                        help (argv[0]);