1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/avdct: Clear IDCTDSPContext context

Fixes use of uninitialized variable and segfault

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2020-01-27 21:54:22 +01:00
parent c2d4762922
commit b82825eba8

View File

@ -100,7 +100,7 @@ int avcodec_dct_init(AVDCT *dsp)
#if CONFIG_IDCTDSP #if CONFIG_IDCTDSP
{ {
IDCTDSPContext idsp; IDCTDSPContext idsp = {0};
ff_idctdsp_init(&idsp, avctx); ff_idctdsp_init(&idsp, avctx);
COPY(idsp, idct); COPY(idsp, idct);
COPY(idsp, idct_permutation); COPY(idsp, idct_permutation);