mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/hls: reset the playlist init segment on seek
The mp4 demuxer gets very upset when it gets flushed and not re-fed this data.
This commit is contained in:
parent
7eb0d9e905
commit
f225f8d746
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue