Fixed metadata FLV bug

This commit is contained in:
Oswald Auguste de Bruin 2013-12-13 11:41:44 +01:00
parent a9df633e87
commit 88dfb7d535

View file

@ -684,7 +684,7 @@ bool FLV::Tag::DTSCMetaInit(DTSC::Stream & S, DTSC::Track & videoRef, DTSC::Trac
std::string tmp = amfdata.Pack();
len = tmp.length() + 15;
if (len <= 0 || checkBufferSize()){
if (len <= 0 || !checkBufferSize()){
return false;
}
memcpy(data + 11, tmp.c_str(), len - 15);