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;
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue