Fixed FLV tag copy constructor data address initialization.

This commit is contained in:
Thulinma 2013-12-05 11:51:01 +01:00
parent 61a035c0b2
commit debce93475

View file

@ -309,12 +309,11 @@ FLV::Tag::Tag(const Tag& O){
done = true;
sofar = 0;
len = O.len;
data = 0;
if (len > 0){
if (checkBufferSize()){
memcpy(data, O.data, len);
}
}else{
data = 0;
}
isKeyframe = O.isKeyframe;
} //copy constructor