[FFmpeg-devel] [PATCH 130/134] avcodec/dss_sp: Remove redundant memset

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Nov 30 02:54:50 EET 2020


An AVCodecContext's priv_data has already been zeroed generically before
calling the init function.

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

diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c
index 4f8ce55cc6..8288cdf120 100644
--- a/libavcodec/dss_sp.c
+++ b/libavcodec/dss_sp.c
@@ -295,7 +295,6 @@ static av_cold int dss_sp_decode_init(AVCodecContext *avctx)
     avctx->channels       = 1;
     avctx->sample_rate    = 11025;
 
-    memset(p->history, 0, sizeof(p->history));
     p->pulse_dec_mode = 1;
     p->avctx          = avctx;
 
-- 
2.25.1



More information about the ffmpeg-devel mailing list