[FFmpeg-cvslog] avcodec/avdct: Clear IDCTDSPContext context
Michael Niedermayer
git at videolan.org
Fri Apr 24 02:13:27 EEST 2020
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Mon Jan 27 21:54:22 2020 +0100| [43222c987fc6a385d3e7913b485156006ebf5a88] | committer: Michael Niedermayer
avcodec/avdct: Clear IDCTDSPContext context
Fixes use of uninitialized variable and segfault
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit b82825eba837f7cbb24c1d66e93285d029307417)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43222c987fc6a385d3e7913b485156006ebf5a88
---
libavcodec/avdct.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list