Skip to content

Commit 850ed6a

Browse files
authored
Merge pull request #15 from 23doors/fix/hls-mp4-seek
fix: HLS MP4 seek
2 parents 6409edc + 7fb561e commit 850ed6a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

patches/ffmpeg-fix-hls-mp4-seek.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/libavformat/hls.c b/libavformat/hls.c
2+
index 2a2fe28a540f..c625e3029116 100644
3+
--- a/libavformat/hls.c
4+
+++ b/libavformat/hls.c
5+
@@ -2506,6 +2506,9 @@ static int hls_read_seek(AVFormatContext *s, int stream_index,
6+
/* Flush the packet queue of the subdemuxer. */
7+
ff_read_frame_flush(pls->ctx);
8+
9+
+ /* Reset the init segment so it's re-fetched and served appropiately */
10+
+ pls->cur_init_section = NULL;
11+
+
12+
pls->seek_timestamp = seek_timestamp;
13+
pls->seek_flags = flags;
14+

scripts/ffmpeg/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -u # treat unset variables as an error
55

66
cd ${SRC_DIR}
77

8+
patch -p1 <${PROJECT_DIR}/patches/ffmpeg-fix-hls-mp4-seek.patch
89
patch -p1 <${PROJECT_DIR}/patches/ffmpeg-fix-ios-hdr-texture.patch
910
patch -p1 <${PROJECT_DIR}/patches/ffmpeg-fix-dash-base-url-escape.patch
1011

0 commit comments

Comments
 (0)