Commit 03ef5047 authored by Reimar Döffinger's avatar Reimar Döffinger

Fix nellymoser encoder crash with hardcoded tables.

Use the correct init function to avoid crashes due to writing
to a rodata location.
Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent a7b1420c
......@@ -174,7 +174,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
ff_dsputil_init(&s->dsp, avctx);
/* Generate overlap window */
ff_sine_window_init(ff_sine_128, 128);
ff_init_ff_sine_windows(7);
for (i = 0; i < POW_TABLE_SIZE; i++)
pow_table[i] = -pow(2, -i / 2048.0 - 3.0 + POW_TABLE_OFFSET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment