projects
/
platform
/
upstream
/
flac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rework so that rice parameters and raw_bits from the entropy coding method struct...
[platform/upstream/flac.git]
/
src
/
libFLAC
/
bitbuffer.c
diff --git
a/src/libFLAC/bitbuffer.c
b/src/libFLAC/bitbuffer.c
index
62d12ea
..
c0e0078
100644
(file)
--- a/
src/libFLAC/bitbuffer.c
+++ b/
src/libFLAC/bitbuffer.c
@@
-254,6
+254,7
@@
FLAC__BitBuffer *FLAC__bitbuffer_new()
FLAC__BitBuffer *bb = (FLAC__BitBuffer*)malloc(sizeof(FLAC__BitBuffer));
if(0 != bb) {
+ memset(bb, 0, sizeof(FLAC__BitBuffer));
bb->buffer = 0;
bb->capacity = 0;
bb->blurbs = bb->bits = bb->total_bits = 0;