diff mbox series

[FFmpeg-devel,2/2] libavformat/hlsenc: Return in hls_write_packet if error after retrying with a new http session

Message ID DB9P191MB14826234344C1A08FB7FD491FE1E9@DB9P191MB1482.EURP191.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,1/2] libavformat/http: Use http_read_header in http_shutdown to react to response errors | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

Basel Sayeh Dec. 11, 2022, 1:11 a.m. UTC
Signed-off-by: Basel Sayeh <basel.sayeh@hotmail.com>
---
 libavformat/hlsenc.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index a86fc8907f..57149985da 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2591,6 +2591,9 @@  static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
                 av_dict_free(&options);
                 av_freep(&vs->temp_buffer);
                 av_freep(&filename);
+
+                if (ret < 0)
+                    return hls->ignore_io_errors ? 0 : ret;
             }
 
             if (use_temp_file)