Throw a different exception when an unrecognised LabelSetType is found. v1.6.7
authorCarl Hetherington <cth@carlh.net>
Thu, 25 Apr 2019 15:46:14 +0000 (15:46 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 25 Apr 2019 15:46:14 +0000 (15:46 +0000)
src/mxf.cc

index 008dbc2ae8955ae1c37d55eb96d16d9202eeeec4..6c0b3edb82fc552efe365db1e43b652e562c8519 100644 (file)
@@ -135,7 +135,7 @@ MXF::read_writer_info (ASDCP::WriterInfo const & info)
                _standard = SMPTE;
                break;
        default:
-               DCP_ASSERT (false);
+               throw DCPReadError ("Unrecognised label set type in MXF");
        }
 
        _metadata.read (info);