[FFmpeg-devel] [PATCH 1/2] avformat/hlsenc: use VariantStream basename when use output single file mode

Steven Liu lq at chinaffmpeg.org
Fri Jul 10 15:19:36 EEST 2020


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index df84e6487d..1d816a61e6 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1723,7 +1723,7 @@ static int hls_start(AVFormatContext *s, VariantStream *vs)
         }
         if (c->flags & HLS_SINGLE_FILE) {
             set_http_options(s, &options, c);
-            if ((err = hlsenc_io_open(s, &vs->out, oc->url, &options)) < 0) {
+            if ((err = hlsenc_io_open(s, &vs->out, vs->basename, &options)) < 0) {
                 if (c->ignore_io_errors)
                     err = 0;
                 goto fail;
-- 
2.25.0



More information about the ffmpeg-devel mailing list