mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +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