Mercurial > libavcodec.hg
changeset 11936:0a36d4b2144b libavcodec
flacenc: convert VLA to fixed size
author | mru |
---|---|
date | Wed, 23 Jun 2010 21:22:56 +0000 |
parents | 5e8770f9d8f1 |
children | bc617cceacb1 |
files | flacenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flacenc.c Wed Jun 23 20:45:36 2010 +0000 +++ b/flacenc.c Wed Jun 23 21:22:56 2010 +0000 @@ -787,7 +787,7 @@ omethod == ORDER_METHOD_4LEVEL || omethod == ORDER_METHOD_8LEVEL) { int levels = 1 << omethod; - uint32_t bits[levels]; + uint32_t bits[1 << ORDER_METHOD_8LEVEL]; int order; int opt_index = levels-1; opt_order = max_order-1;