From 03ef5047d15904ed34976c6ba11c9176529ee9e7 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 8 Apr 2012 20:25:08 +0200 Subject: Fix nellymoser encoder crash with hardcoded tables. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the correct init function to avoid crashes due to writing to a rodata location. Signed-off-by: Reimar Döffinger --- libavcodec/nellymoserenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/nellymoserenc.c') diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 29b5049a7f..b40e70866b 100644 --- a/libavcodec/nellymoserenc.c +++ b/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); -- cgit v1.2.3