diff options
author | Richard Shaffer <rshaffer@tunein.com> | 2018-04-17 14:39:26 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2018-04-17 14:39:26 +0800 |
commit | 6a1be7561c870a8cd3cee86a57aabdffb19e3870 (patch) | |
tree | 893bb09d1d219f72f56d64481cca8652572a8042 | |
parent | 9e2b4c7ecc3014310d01e918800f7f7f36596598 (diff) | |
download | ffmpeg-streaming-6a1be7561c870a8cd3cee86a57aabdffb19e3870.zip ffmpeg-streaming-6a1be7561c870a8cd3cee86a57aabdffb19e3870.tar.gz |
avformat/hls: copy rw_timeout from parent to child AVIOContexts.
The rw_timeout option is currently not applied when opening media playlist,
segment, or encryption key URLs. This can cause the HLS demuxer to block
indefinitely, even when the rw_timeout option has been specified. This change
simply enables carrying over the rw_timeout option when the demuxer opens these
URLs.
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Richard Shaffer <rshaffer@tunein.com>
-rw-r--r-- | libavformat/hls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index 2387d06..3be708b 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1637,7 +1637,7 @@ static int save_avio_options(AVFormatContext *s) { HLSContext *c = s->priv_data; static const char * const opts[] = { - "headers", "http_proxy", "user_agent", "user-agent", "cookies", "referer", NULL }; + "headers", "http_proxy", "user_agent", "user-agent", "cookies", "referer", "rw_timeout", NULL }; const char * const * opt = opts; uint8_t *buf; int ret = 0; |