[FFmpeg-devel] [PATCH 15/20] avcodec/snowdec: Don't zero encoder-only buffer

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Oct 10 06:13:05 EEST 2022


Maybe zeroing spatial_idwt_buffer was intended?

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/snowdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 96221b9802..17c7ccaf2c 100644
--- a/libavcodec/snowdec.c
+++ b/libavcodec/snowdec.c
@@ -661,7 +661,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *picture,
         int decode_state[MAX_DECOMPOSITIONS][4][1]; /* Stored state info for unpack_coeffs. 1 variable per instance. */
 
         if(s->avctx->debug&2048){
-            memset(s->spatial_dwt_buffer, 0, sizeof(DWTELEM)*w*h);
             predict_plane(s, s->spatial_idwt_buffer, plane_index, 1);
 
             for(y=0; y<h; y++){
-- 
2.34.1



More information about the ffmpeg-devel mailing list