[FFmpeg-cvslog] avformat/rcwtenc: Remove redundant zeroing of buffer
Andreas Rheinhardt
git at videolan.org
Fri Feb 9 11:19:50 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Feb 8 16:01:06 2024 +0100| [a8e55cf11846c4e44d45985dd0a8a5a53e2359aa] | committer: Andreas Rheinhardt
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 <marth64 at proxyid.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a8e55cf11846c4e44d45985dd0a8a5a53e2359aa
---
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)
More information about the ffmpeg-cvslog
mailing list