[xiph-commits] r16689 - trunk/ffmpeg2theora/src
oggk at svn.xiph.org
oggk at svn.xiph.org
Tue Nov 3 15:32:04 PST 2009
Author: oggk
Date: 2009-11-03 15:32:04 -0800 (Tue, 03 Nov 2009)
New Revision: 16689
Modified:
trunk/ffmpeg2theora/src/theorautils.c
Log:
actually clear the packet, not the first sizeof(void*) bytes
Modified: trunk/ffmpeg2theora/src/theorautils.c
===================================================================
--- trunk/ffmpeg2theora/src/theorautils.c 2009-11-03 22:26:44 UTC (rev 16688)
+++ trunk/ffmpeg2theora/src/theorautils.c 2009-11-03 23:32:04 UTC (rev 16689)
@@ -390,7 +390,7 @@
int num_used_keypoints)
{
size_t size = 14 + num_allocated_keypoints * KEYPOINT_SIZE;
- memset (op, 0, sizeof(op));
+ memset (op, 0, sizeof(*op));
op->packet = malloc(size);
if (op->packet == NULL)
return -1;
More information about the commits
mailing list