diff mbox series

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

Message ID 20200710121937.2321-1-lq@chinaffmpeg.org
State New
Headers show
Series [FFmpeg-devel,1/2] avformat/hlsenc: use VariantStream basename when use output single file mode
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Steven Liu July 10, 2020, 12:19 p.m. UTC
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;