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 21C6E46E1D for ; Tue, 15 Aug 2023 20:53:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3793C68C72C; Tue, 15 Aug 2023 23:53:46 +0300 (EEST) Received: from btbn.de (btbn.de [136.243.74.85]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F35CB68C558 for ; Tue, 15 Aug 2023 23:53:39 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 56E3E3FCBDE; Tue, 15 Aug 2023 22:53:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1692132817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=knI1wYYofQI1c5NctFxtCvRh6FXaXkv4KSXVK4BVMUU=; b=p1c7dTKdysoUNJQcLJhn+B+niiEFPJSp/UV8OhMD2ZS9HLw6b5W0fQ0Xy3idO2CAjsugD8 JhtAjHa2Kqog5uMhQKmYS7Yqf0db+tk7YCYsd/QC33vQgnQhU+HROtkcaOGG9r8Vp5fu8G 5Y9BeWKHDmba/E3SoDSSeynacekWhjB5siyr0bjnwJvDRYp010Gp1BLcimLMQRP4FD+4XA DjGR53ZjCMue+fPlj0NribzGJCHTiSUgO7D2FJ8MD6K+EfmkLJvGaFWUcKbYUBrNujZ2wc wEnLx9ecEWjXjn6flexS9rnCh/zSPd3GyCxevh+UJfcEAzimAgrd15/UKQw2cA== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Tue, 15 Aug 2023 22:53:30 +0200 Message-Id: <20230815205330.56868-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/hls: reset the playlist init segment on seek 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: Timo Rothenpieler 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: The mp4 demuxer gets very upset when it gets flushed and not re-fed this data. --- libavformat/hls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index 2a2fe28a54..c625e30291 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2506,6 +2506,9 @@ static int hls_read_seek(AVFormatContext *s, int stream_index, /* Flush the packet queue of the subdemuxer. */ ff_read_frame_flush(pls->ctx); + /* Reset the init segment so it's re-fetched and served appropiately */ + pls->cur_init_section = NULL; + pls->seek_timestamp = seek_timestamp; pls->seek_flags = flags; -- 2.34.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".