aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-01-27 21:54:22 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-03 12:10:23 +0200
commit51c084bf728e7900c0606d54257ac7474b2db6fe (patch)
treed6fa580f10c618c98a8333a4f9f6a2a9cdae77c0
parent9ed9c8cc51051c6a234b08853aafbbddd1478ca0 (diff)
downloadffmpeg-51c084bf728e7900c0606d54257ac7474b2db6fe.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 47e5f7134e..7c761cf39a 100644
--- a/libavcodec/avdct.c
+++ b/libavcodec/avdct.c
@@ -100,7 +100,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);