From 58ef77148c43e90461cf6c0c7d9535930dfbfe71 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 30 Nov 2020 00:09:00 +0100 Subject: [PATCH] avcodec/dss_sp: Remove redundant memset An AVCodecContext's priv_data has already been zeroed generically before calling the init function. Signed-off-by: Andreas Rheinhardt --- libavcodec/dss_sp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c index ca6d748804..b904585b5d 100644 --- a/libavcodec/dss_sp.c +++ b/libavcodec/dss_sp.c @@ -296,7 +296,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;