hmac pad fix
[asdcplib.git] / src / MXFTypes.h
index 1fa6176d9cf253f0d260edbf8cdf78a8a29f6c02..fe03495faa3b7ea97c20bba349a076aa6adedc1c 100755 (executable)
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2005-2006, John Hurst
+Copyright (c) 2005-2009, John Hurst
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -41,9 +41,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 // used with TLVReader::Read*
 //
 // these are used below to manufacture arguments
-#define OBJ_READ_ARGS(s,l) Dict::Type(MDD_##s##_##l), &l
-#define OBJ_WRITE_ARGS(s,l) Dict::Type(MDD_##s##_##l), &l
-#define OBJ_TYPE_ARGS(t) Dict::Type(MDD_##t).ul
+#define OBJ_READ_ARGS(s,l) m_Dict->Type(MDD_##s##_##l), &l
+#define OBJ_WRITE_ARGS(s,l) m_Dict->Type(MDD_##s##_##l), &l
+#define OBJ_TYPE_ARGS(t) m_Dict->Type(MDD_##t).ul
 
 
 namespace ASDCP
@@ -312,7 +312,7 @@ namespace ASDCP
          Rational() {}
          ~Rational() {}
 
-         Rational(const Rational& rhs) {
+         Rational(const Rational& rhs) : ASDCP::Rational(), IArchive() {
            Numerator = rhs.Numerator;
            Denominator = rhs.Denominator;
          }