Skip to content

Commit b932f28

Browse files
committed
update hls patch
1 parent 194bd72 commit b932f28

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 411a7fc1b4be73f655ca2881cc8e16a862bfe194 Mon Sep 17 00:00:00 2001
2+
From: qianlongxu <qianlongxu@gmail.com>
3+
Date: Fri, 1 Nov 2024 16:56:53 +0800
4+
Subject: [PATCH 25] fix can't seek to 00:00 bug, baidu neddisk hls start_time is
5+
less than first_timestamp
6+
7+
---
8+
libavformat/hls.c | 5 ++++-
9+
1 file changed, 4 insertions(+), 1 deletion(-)
10+
11+
diff --git a/libavformat/hls.c b/libavformat/hls.c
12+
index 1cf3057..b0290e3 100644
13+
--- a/libavformat/hls.c
14+
+++ b/libavformat/hls.c
15+
@@ -1720,7 +1720,10 @@ static int find_timestamp_in_playlist(HLSContext *c, struct playlist *pls,
16+
17+
if (timestamp < pos) {
18+
*seq_no = pls->start_seq_no;
19+
- return 0;
20+
+ if (seg_start_ts) {
21+
+ *seg_start_ts = pos;
22+
+ }
23+
+ return 1;
24+
}
25+
26+
for (i = 0; i < pls->n_segments; i++) {
27+
--
28+
2.39.5 (Apple Git-154)
29+

patches/ffmpeg-n6.1/0025-fix-can-t-seek-to-00-00-bug-some-hls-start_time-is-l.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)