mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-21 13:22:13 +00:00
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>
This commit is contained in:
parent
a7b1420ca2
commit
03ef5047d1
@ -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…
x
Reference in New Issue
Block a user