summaryrefslogtreecommitdiff
path: root/lib/frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frame.cc')
-rw-r--r--lib/frame.cc3
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()