From 0791ce8426fe56246afa4123c37388c2f506f8ce Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 29 Apr 2005 13:53:47 +0000 Subject: Testing mpeg4 (divx) codec --- src/frame.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frame.cc') 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; } -- cgit v1.2.3