aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Semashev <andrey.semashev@gmail.com>2020-07-01 17:59:01 +0300
committerSteven Liu <lq@chinaffmpeg.org>2020-07-06 15:16:45 +0800
commit93a435dd4baa7335a701296aeb33694390d4a665 (patch)
treec59c867f35a12f3d907807b257a830e96d892466
parent57ea0483af8e09ab812713fff6f89060a24b7a75 (diff)
downloadffmpeg-93a435dd4baa7335a701296aeb33694390d4a665.tar.gz
libavformat/hlsenc: Remove duplicate close of the output stream.
The result of the first close attempt is ignored and may be lost. By removing it we ensure the close result code is properly analyzed.
-rw-r--r--libavformat/hlsenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 0a318d29ff..3398f0e732 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2629,7 +2629,6 @@ static int hls_write_trailer(struct AVFormatContext *s)
goto failed;
vs->size = range_length;
- hlsenc_io_close(s, &vs->out, filename);
ret = hlsenc_io_close(s, &vs->out, filename);
if (ret < 0) {
av_log(s, AV_LOG_WARNING, "upload segment failed, will retry with a new http session.\n");