git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed compiler warnings.
[swftools.git]
/
lib
/
modules
/
swfsound.c
diff --git
a/lib/modules/swfsound.c
b/lib/modules/swfsound.c
index
5f08150
..
d08026b
100644
(file)
--- a/
lib/modules/swfsound.c
+++ b/
lib/modules/swfsound.c
@@
-47,11
+47,10
@@
void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int numsamples, char first)
char*buf;
int len = 0;
+ buf = malloc(init->bufferSize);
if(!buf)
return;
- buf = malloc(init->bufferSize);
-
len = codecEncodeChunk (numsamples, samples, buf);
len += codecFlush (&buf[len]);
len += codecExit (&buf[len]);