summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-08 16:01:06 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-09 10:20:35 +0100
commita8e55cf11846c4e44d45985dd0a8a5a53e2359aa (patch)
tree9066e8c8315ba5e7c108ea3bbef42285facb4342
parentd30fe36b88983feb7c48fc22a4bc03868248c479 (diff)
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@proxyid.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/rcwtenc.c1
1 files changed, 0 insertions, 1 deletions
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)