From a8e55cf11846c4e44d45985dd0a8a5a53e2359aa Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 8 Feb 2024 16:01:06 +0100 Subject: avformat/rcwtenc: Remove redundant zeroing of buffer Resetting the counter of used elements is enough as nothing is ever read from the currently unused elements. Reviewed-by: Marth64 Signed-off-by: Andreas Rheinhardt --- libavformat/rcwtenc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/rcwtenc.c b/libavformat/rcwtenc.c index 1becef5f48..2ee4aae6bf 100644 --- a/libavformat/rcwtenc.c +++ b/libavformat/rcwtenc.c @@ -76,7 +76,6 @@ static void rcwt_init_cluster(AVFormatContext *avf) rcwt->cluster_pos = 0; rcwt->cluster_pts = AV_NOPTS_VALUE; - memset(rcwt->cluster_buf, 0, sizeof(rcwt->cluster_buf)); } static void rcwt_flush_cluster(AVFormatContext *avf) -- cgit v1.2.3