libebml: code cleaning
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@757 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
parent
83cc857424
commit
7922aef03d
@ -92,9 +92,9 @@ filepos_t EbmlBinary::ReadData(IOCallback & input, ScopeMode ReadFully)
|
|||||||
return GetSize();
|
return GetSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
Data = (binary *)malloc(GetSize() * sizeof(binary));
|
Data = (binary *)malloc(GetSize());
|
||||||
if (Data == NULL)
|
if (Data == NULL)
|
||||||
throw CRTError(std::string("Error allocating data"));
|
throw CRTError(std::string("Error allocating data"));
|
||||||
SetValueIsSet();
|
SetValueIsSet();
|
||||||
return input.read(Data, GetSize());
|
return input.read(Data, GetSize());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user