mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
g729dec: initialize pitch_delay_int_prev to the minimum valid value.
This prevents an out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
31a45014f4
commit
c963189bc2
@ -371,6 +371,8 @@ static av_cold int decoder_init(AVCodecContext * avctx)
|
||||
|
||||
ctx->exc = &ctx->exc_base[PITCH_DELAY_MAX+INTERPOL_LEN];
|
||||
|
||||
ctx->pitch_delay_int_prev = PITCH_DELAY_MIN;
|
||||
|
||||
/* random seed initialization */
|
||||
ctx->rand_value = 21845;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user