From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 7224240D3B for ; Tue, 11 Oct 2022 06:52:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D5E2468BC20; Tue, 11 Oct 2022 09:52:32 +0300 (EEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 47F7468BB9A for ; Tue, 11 Oct 2022 09:52:25 +0300 (EEST) X-QQ-mid: bizesmtp70t1665471071t5ra0vhi Received: from localhost ( [103.107.217.225]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 11 Oct 2022 14:51:10 +0800 (CST) X-QQ-SSF: 01100000000000Z0Z000000A0000000 X-QQ-FEAT: UMQM+3VOEYvCZP3SNogA6o1dptZoHGcMtQjVt0ANi+A48tTCC1mNuDr3oH/2q 71J1mpXC0W8HWeBroNhKhysfeWxMS4o3P5RbODnYJoiL7Ukg98/fsgUDfoDuuYmDbN++QOn agBuNsKVi65nk85h44uMHKPU4MWBuKECbee33KK8UhVhdUYnNJSreUCsDkP+2BKHj4xIaeJ F54w/z8ffRfCayaA4NgGizQCgTbZGnyw9AzPvkCfvDXYfhns98JX40KNErLiF/jEu184Moy KZGKkf/GejkcMX2rIMPw7lnIl+rBim0DpHIaxZvakZtGjHNUa6CMjNpxZReKVqK38ogmGd8 yRWsvUWB9DzHGcgVBI= X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Oct 2022 14:51:08 +0800 Message-Id: <20221011065108.55647-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:qybglogicsvr:qybglogicsvr2 Subject: [FFmpeg-devel] [PATCH] avformat/dashenc: set start_number of fragment from zero X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Client will get from the second fragment of the playlist if the start number is 1, and the recording files will play from second fragment. So set the startNumber from 0, just make the user get fragment from the first one of playlist. Signed-off-by: Steven Liu --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index a0919f6f2d..dd5fe02087 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -499,7 +499,7 @@ static void get_hls_playlist_name(char *playlist_name, int string_size, static void get_start_index_number(OutputStream *os, DASHContext *c, int *start_index, int *start_number) { *start_index = 0; - *start_number = 1; + *start_number = 0; if (c->window_size) { *start_index = FFMAX(os->nb_segments - c->window_size, 0); *start_number = FFMAX(os->segment_index - c->window_size, 1); -- 2.31.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".