[FFmpeg-cvslog] Fix nellymoser encoder crash with hardcoded tables.
Reimar Döffinger
git at videolan.org
Sun Apr 8 20:26:51 CEST 2012
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Apr 8 20:25:08 2012 +0200| [03ef5047d15904ed34976c6ba11c9176529ee9e7] | committer: 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: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03ef5047d15904ed34976c6ba11c9176529ee9e7
---
libavcodec/nellymoserenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 29b5049..b40e708 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);
More information about the ffmpeg-cvslog
mailing list