Mercurial > libavcodec.hg
comparison flacenc.c @ 11936:0a36d4b2144b libavcodec
flacenc: convert VLA to fixed size
author | mru |
---|---|
date | Wed, 23 Jun 2010 21:22:56 +0000 |
parents | 998691d7f8f5 |
children | fdafbcef52f5 |
comparison
equal
deleted
inserted
replaced
11935:5e8770f9d8f1 | 11936:0a36d4b2144b |
---|---|
785 | 785 |
786 if(omethod == ORDER_METHOD_2LEVEL || | 786 if(omethod == ORDER_METHOD_2LEVEL || |
787 omethod == ORDER_METHOD_4LEVEL || | 787 omethod == ORDER_METHOD_4LEVEL || |
788 omethod == ORDER_METHOD_8LEVEL) { | 788 omethod == ORDER_METHOD_8LEVEL) { |
789 int levels = 1 << omethod; | 789 int levels = 1 << omethod; |
790 uint32_t bits[levels]; | 790 uint32_t bits[1 << ORDER_METHOD_8LEVEL]; |
791 int order; | 791 int order; |
792 int opt_index = levels-1; | 792 int opt_index = levels-1; |
793 opt_order = max_order-1; | 793 opt_order = max_order-1; |
794 bits[opt_index] = UINT32_MAX; | 794 bits[opt_index] = UINT32_MAX; |
795 for(i=levels-1; i>=0; i--) { | 795 for(i=levels-1; i>=0; i--) { |