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

Basel Sayeh basel.sayeh at hotmail.com
Sun Dec 11 03:11:23 EET 2022


Signed-off-by: Basel Sayeh <basel.sayeh at hotmail.com>
---
 libavformat/hlsenc.c | 3 +++
 1 file changed, 3 insertions(+)

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)
-- 
2.30.2



More information about the ffmpeg-devel mailing list