OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0ccc2
)
Fix a __warn_memset_zero_len gcc-4.4 warning.
author
Alex Converse
<alex.converse@gmail.com>
Thu, 12 Nov 2009 01:44:38 +0000
(
01:44
+0000)
committer
Alex Converse
<alex.converse@gmail.com>
Thu, 12 Nov 2009 01:44:38 +0000
(
01:44
+0000)
Originally committed as revision 20521 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/alsdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/alsdec.c
b/libavcodec/alsdec.c
index
47b708f
..
bd9a17f
100644
(file)
--- a/
libavcodec/alsdec.c
+++ b/
libavcodec/alsdec.c
@@
-670,6
+670,7
@@
static void zero_remaining(unsigned int b, unsigned int b_max,
while (b < b_max)
count += div_blocks[b];
+ if (count)
memset(buf, 0, sizeof(*buf) * count);
}