Skip to content

Commit

Permalink
fix for #184
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Sep 9, 2017
1 parent 2f267f8 commit 41cad60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/C++/MetaData/Ap4MetaData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,8 @@ AP4_AtomMetaDataValue::ToInteger() const
+---------------------------------------------------------------------*/
AP4_DataAtom::AP4_DataAtom(const AP4_MetaData::Value& value) :
AP4_Atom(AP4_ATOM_TYPE_DATA, AP4_ATOM_HEADER_SIZE),
m_DataType(DATA_TYPE_BINARY)
m_DataType(DATA_TYPE_BINARY),
m_Source(NULL)
{
AP4_MemoryByteStream* memory = new AP4_MemoryByteStream();
AP4_Size payload_size = 8;
Expand Down Expand Up @@ -1334,7 +1335,8 @@ AP4_DataAtom::AP4_DataAtom(const AP4_MetaData::Value& value) :
| AP4_DataAtom::AP4_DataAtom
+---------------------------------------------------------------------*/
AP4_DataAtom::AP4_DataAtom(AP4_UI32 size, AP4_ByteStream& stream) :
AP4_Atom(AP4_ATOM_TYPE_DATA, size)
AP4_Atom(AP4_ATOM_TYPE_DATA, size),
m_Source(NULL)
{
if (size < AP4_ATOM_HEADER_SIZE+8) return;

Expand Down

0 comments on commit 41cad60

Please sign in to comment.