summaryrefslogtreecommitdiff
path: root/src/frame.cc
diff options
context:
space:
mode:
authordeva <deva>2005-04-29 13:53:47 +0000
committerdeva <deva>2005-04-29 13:53:47 +0000
commit0791ce8426fe56246afa4123c37388c2f506f8ce (patch)
tree3bf583d2ce5b998e789c0002dff23ba3b52083a5 /src/frame.cc
parentedb7f06d81d94178aace1a9c29888e4bb800fb6a (diff)
Testing mpeg4 (divx) codec
Diffstat (limited to 'src/frame.cc')
-rw-r--r--src/frame.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.cc b/src/frame.cc
index 4b94fcb..23d98ce 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -34,7 +34,7 @@
Frame::Frame(unsigned char *d, int sz)
{
data = (unsigned char *)malloc(sz);
- memcpy(data, d, sz);
+ if(d) memcpy(data, d, sz);
size = sz;
}