diff options
author | deva <deva> | 2006-04-10 13:04:31 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-10 13:04:31 +0000 |
commit | 582bcd19d6a58c266f5453961c87acf72fae5353 (patch) | |
tree | 5ee3bdc1726d833da65efab320e5eabfcb802e51 /lib/frame.cc | |
parent | 46b3c21f079a10e1ed072976d355a8026bcb7580 (diff) |
*** empty log message ***
Diffstat (limited to 'lib/frame.cc')
-rw-r--r-- | lib/frame.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/frame.cc b/lib/frame.cc index 568c46b..caab521 100644 --- a/lib/frame.cc +++ b/lib/frame.cc @@ -34,11 +34,14 @@ Frame::Frame(unsigned char *d, int sz) { if(sz) data = new unsigned char[sz]; if(sz && d) memcpy(data, d, sz); + if(sz == 0 && d) data = d; size = sz; number = 0; memset(timecode, 0, sizeof(timecode)); endOfFrameStream = false; + + usage = 0; } Frame::~Frame() |