[FFmpeg-devel] [PATCH 2/3] avformat/rcwtenc: Remove redundant zeroing of buffer
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Feb 8 17:09:53 EET 2024
Resetting the counter of used elements is enough as nothing is
ever read from the currently unused elements.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/rcwtenc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavformat/rcwtenc.c b/libavformat/rcwtenc.c
index d0e469ce65..084de6e205 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)
--
2.34.1
More information about the ffmpeg-devel
mailing list