projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64d39b7
)
flacdec: change variable-length array to fixed length
author
Måns Rullgård
<mans@mansr.com>
Wed, 19 Aug 2009 21:59:36 +0000
(21:59 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Wed, 19 Aug 2009 21:59:36 +0000
(21:59 +0000)
pred_order can never exceed 32, so always allocating that amount is safe
and not very wasteful.
Originally committed as revision 19669 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/flacdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/flacdec.c
b/libavcodec/flacdec.c
index
4ff7fae
..
d3a8b33
100644
(file)
--- a/
libavcodec/flacdec.c
+++ b/
libavcodec/flacdec.c
@@
-358,7
+358,7
@@
static int decode_subframe_lpc(FLACContext *s, int channel, int pred_order)
{
int i, j;
int coeff_prec, qlevel;
- int coeffs[
pred_order
];
+ int coeffs[
32
];
int32_t *decoded = s->decoded[channel];
/* warm up samples */