Skip to content

Commit 8ef7d9e

Browse files
committed
fix can't seek to 00:00 bug, some hls start_time is less than first_timestamp
1 parent a1ac856 commit 8ef7d9e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 0ec0db43c0d578513ea896cff481883a4275d38a Mon Sep 17 00:00:00 2001
2+
From: qianlongxu <[email protected]>
3+
Date: Fri, 1 Nov 2024 11:38:58 +0800
4+
Subject: [PATCH 25] fix can't seek to 00:00 bug, some hls start_time is less than
5+
first_timestamp
6+
7+
---
8+
libavformat/hls.c | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/libavformat/hls.c b/libavformat/hls.c
12+
index 1cf3057..42b61d9 100644
13+
--- a/libavformat/hls.c
14+
+++ b/libavformat/hls.c
15+
@@ -1720,7 +1720,7 @@ 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+
+ return 1;
21+
}
22+
23+
for (i = 0; i < pls->n_segments; i++) {
24+
--
25+
2.39.5 (Apple Git-154)
26+

0 commit comments

Comments
 (0)