diff options
author | Ed Martin <edman007@edman007.com> | 2021-03-10 21:43:10 +0000 |
---|---|---|
committer | Steven Liu <liuqi05@kuaishou.com> | 2021-03-15 15:16:20 +0800 |
commit | 63344337f945843e8f247b3b15fa0f0e7b0f0a7c (patch) | |
tree | 6348c25e94dc4380eab9fde1c00a30e5219a947f /libavcodec/mpeg4video_parser.c | |
parent | 8e77624e849ce4cb51587583ea018ba568e77026 (diff) | |
download | ffmpeg-63344337f945843e8f247b3b15fa0f0e7b0f0a7c.tar.gz |
libavformat/hls: Reset options after open_url_keepalive() fails
open_url_keepalive() unsets the options when it uses them, this
includes the offsets for the Range: header. When using the HLS
tag #EXT-X-BYTERANGE along with multiple files, the range options
must be preserved after open_url_keepalive() returns EOF so that
the new file can be opened. Failure to do this results in ignoring
the #EXT-X-BYTERANGE tag and reading the wrong bytes of the file.
To fix it, reset the options before calling io_open() following
open_url_keepalive() reaching EOF
Reviewed-by: Steven Liu <liuqi05@kuaishou.com>
Diffstat (limited to 'libavcodec/mpeg4video_parser.c')
0 files changed, 0 insertions, 0 deletions