diff mbox series

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

Message ID 20201130005454.110441-58-andreas.rheinhardt@gmail.com
State Accepted
Commit 58ef77148c43e90461cf6c0c7d9535930dfbfe71
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

Context Check Description
andriy/x86 warning Failed to apply patch

Commit Message

Andreas Rheinhardt Nov. 30, 2020, 12:54 a.m. UTC
An AVCodecContext's priv_data has already been zeroed generically before
calling the init function.

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

Patch

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;