[FFmpeg-devel] [PATCH 09/12] flacenc: convert VLA to fixed size

Måns Rullgård mans
Wed Jun 23 23:23:07 CEST 2010


Justin Ruggles <justin.ruggles at gmail.com> writes:

> Mans Rullgard wrote:
>
>> ---
>>  libavcodec/flacenc.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
>> index 89d40d5..c6729f1 100644
>> --- a/libavcodec/flacenc.c
>> +++ b/libavcodec/flacenc.c
>> @@ -787,7 +787,7 @@ static int encode_residual(FlacEncodeContext *ctx, int ch)
>>         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;
>
> ok.

Applied.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list