From patchwork Mon May 4 04:00:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 19479 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id A2685449A9E for ; Mon, 4 May 2020 07:01:26 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 706F068BD05; Mon, 4 May 2020 07:01:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from qq.com (smtpbg558.qq.com [183.3.226.228]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A137668BBCD for ; Mon, 4 May 2020 07:01:19 +0300 (EEST) X-QQ-mid: bizesmtp2t1588564843t3jqoz743 Received: from localhost (unknown [123.115.198.215]) by esmtp6.qq.com (ESMTP) with id ; Mon, 04 May 2020 12:00:42 +0800 (CST) X-QQ-SSF: 01100000002000Y0ZWF0B00A0000000 X-QQ-FEAT: ptz89vG4AG+Pk1b1NxtOiq7EUQrD2pAypFHHqh8sPHQIVtnYztrXp06SfXeRs vuOgv8SnF0wxO1sNWMcuPKlODD+YUJ5xPISzBP+TVdG0aGJSv3I1/CJSmLk9g1TpIxHGOaa Q6Cx+hTZwClP+o6/HeaKkeygaOcv8aT2aehY4ee6LZYzwNr+J63oP72965rFVcNG9cwJSFz pO6F4qEQIZMMBpuWs5Ii63Q92Lbzpo6ioRHXe7bQM8QAf2dXYjER9XLXaY8wNOOwory3car p+f0jfB6LRJlNh4GZXMv9qOqRAMckO+MTcPZcfaFv3V1l9 X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Mon, 4 May 2020 12:00:41 +0800 Message-Id: <20200504040041.98669-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: resend full url of the init fragment mp4 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" fix ticket: 8651 because the init fragment mp4 file name is without base url name, so just modify it use the full url which splice after init function. Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 4a83db04e9..4c3c643773 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2258,7 +2258,7 @@ static int hls_init_file_resend(AVFormatContext *s, VariantStream *vs) int ret = 0; set_http_options(s, &options, hls); - ret = hlsenc_io_open(s, &vs->out, hls->fmp4_init_filename, &options); + ret = hlsenc_io_open(s, &vs->out, vs->base_output_dirname, &options); av_dict_free(&options); if (ret < 0) return ret;