Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
58a41286
Commit
58a41286
authored
Nov 03, 2009
by
oggk
Browse files
actually clear the packet, not the first sizeof(void*) bytes
parent
6d80afe1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/theorautils.c
View file @
58a41286
...
...
@@ -390,7 +390,7 @@ static int create_index_packet(int num_allocated_keypoints,
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment