mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-06 08:08:58 +02:00
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>
This commit is contained in:
parent
a35101aae3
commit
7596b6530d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user