[FFmpeg-devel] [PATCH 3/3] avformat/hlsenc: Remove dead ret stores
Michael Niedermayer
michael at niedermayer.cc
Sat May 25 14:18:14 EEST 2024
Fixes: CID1529222 Unused value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/hlsenc.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 0e2843c6bc5..8a43ef6232a 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1582,8 +1582,6 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs)
ret = hlsenc_io_open(s, byterange_mode ? &hls->m3u8_out : &vs->out, temp_filename, &options);
av_dict_free(&options);
if (ret < 0) {
- if (hls->ignore_io_errors)
- ret = 0;
goto fail;
}
@@ -1641,8 +1639,6 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs)
ret = hlsenc_io_open(s, &hls->sub_m3u8_out, temp_vtt_filename, &options);
av_dict_free(&options);
if (ret < 0) {
- if (hls->ignore_io_errors)
- ret = 0;
goto fail;
}
ff_hls_write_playlist_header(hls->sub_m3u8_out, hls->version, hls->allowcache,
--
2.45.1
More information about the ffmpeg-devel
mailing list