summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-09 20:42:35 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-18 04:51:24 +0100
commit7596b6530d5f00ea0510b5c698714c76369811e7 (patch)
tree5571cb60dc7a03ff05c095e7bf6958092279a5f8 /libavformat/hlsenc.c
parenta35101aae36583450be4881a5cde2a904a489d84 (diff)
avformat/hlsenc: Remove nonsense memset
The memset here is both unnecessary (avio_read() ignores the previous content of the destination buffer) as well as nonsense (for a char buf[BUFSIZE] sizeof(buf) and sizeof(BUFSIZE) are not the same; the latter is sizeof(int)). Fixes Coverity issue #1465863. Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 98608a834a..557cf1bee3 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2382,7 +2382,6 @@ static int64_t append_single_file(AVFormatContext *s, VariantStream *vs)
}
do {
- memset(buf, 0, sizeof(BUFSIZE));
read_byte = avio_read(vs->out, buf, BUFSIZE);
avio_write(vs->out_single_file, buf, read_byte);
if (read_byte > 0) {