aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/file_open.c
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2015-10-15 13:42:38 +0300
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-10-15 14:41:23 +0200
commite69d8fc619d2e640e207c2b412cfc0b6cc6d5230 (patch)
tree37a67e4e02282dcb7346d79f4496eb57ae6829a8 /libavformat/file_open.c
parent6197d35a93bf959527d52efe28f9dd692b0a035f (diff)
downloadffmpeg-e69d8fc619d2e640e207c2b412cfc0b6cc6d5230.tar.gz
avformat/hls: fix segment selection regression on track changes of live streams
Commit ad701326b43078b90 ("avformat/hls: open playlists immediately when AVDISCARD_ALL is dropped") inadvertently caused first_packet to never be cleared, causing select_cur_seq_no() to not use the specific code for live streams. In practice this means that when the user selects a different audio track during live stream (i.e. non-VOD) playback, there may be some additional delay as the code might select an incorrect segment at first, and we have to wait for video to catch audio (if too late segment was selected) or to download more following audio segments (if too early segment was selected). Fix that by restoring the zeroing of first_packet. (cherry picked from commit fd74d45d5158812675105a3b4aeb29c67b82f7e8)
Diffstat (limited to 'libavformat/file_open.c')
0 files changed, 0 insertions, 0 deletions