Signed-off-by: Basel Sayeh <[email protected]>
---
 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

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to