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: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
pull/5/head
Reimar Döffinger 13 years ago
parent a7b1420ca2
commit 03ef5047d1
  1. 2
      libavcodec/nellymoserenc.c

@ -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);

Loading…
Cancel
Save