aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-01-27 21:54:22 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-04-23 21:29:01 +0200
commit43222c987fc6a385d3e7913b485156006ebf5a88 (patch)
tree67edf9da3b35a2f3141626c4820e865d0b917974
parentcee643d7fbcdb016525425eaa897426ebef01345 (diff)
downloadffmpeg-43222c987fc6a385d3e7913b485156006ebf5a88.tar.gz
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> (cherry picked from commit b82825eba837f7cbb24c1d66e93285d029307417) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/avdct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c
index 3b622bac23..fcd56602f8 100644
--- a/libavcodec/avdct.c
+++ b/libavcodec/avdct.c
@@ -109,7 +109,7 @@ int avcodec_dct_init(AVDCT *dsp)
#if CONFIG_IDCTDSP
{
- IDCTDSPContext idsp;
+ IDCTDSPContext idsp = {0};
ff_idctdsp_init(&idsp, avctx);
COPY(idsp, idct);
COPY(idsp, idct_permutation);