Fixed FLV tag copy constructor data address initialization.
This commit is contained in:
parent
61a035c0b2
commit
debce93475
1 changed files with 1 additions and 2 deletions
|
@ -309,12 +309,11 @@ FLV::Tag::Tag(const Tag& O){
|
||||||
done = true;
|
done = true;
|
||||||
sofar = 0;
|
sofar = 0;
|
||||||
len = O.len;
|
len = O.len;
|
||||||
|
data = 0;
|
||||||
if (len > 0){
|
if (len > 0){
|
||||||
if (checkBufferSize()){
|
if (checkBufferSize()){
|
||||||
memcpy(data, O.data, len);
|
memcpy(data, O.data, len);
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
data = 0;
|
|
||||||
}
|
}
|
||||||
isKeyframe = O.isKeyframe;
|
isKeyframe = O.isKeyframe;
|
||||||
} //copy constructor
|
} //copy constructor
|
||||||
|
|
Loading…
Add table
Reference in a new issue