diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2020-07-18 19:44:35 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2020-07-20 19:17:42 +0800 |
commit | 4239a8c9831a0054af47400aaf78167178b97197 (patch) | |
tree | 3a779da3ae20e76b7eda098981b66e4c4ceaf6e2 /libavformat/hls.c | |
parent | 43a08d907ba765677254b4816f246a8ecfd7ff78 (diff) | |
download | ffmpeg-4239a8c9831a0054af47400aaf78167178b97197.tar.gz |
lavf/hls: enable custom interrup callback in sub-demuxer
Enable the custom callback in sub-demuxer
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index ba17c4ed96..cf0b71d65d 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1984,6 +1984,7 @@ static int hls_read_header(AVFormatContext *s) read_data, NULL, NULL); pls->ctx->probesize = s->probesize > 0 ? s->probesize : 1024 * 4; pls->ctx->max_analyze_duration = s->max_analyze_duration > 0 ? s->max_analyze_duration : 4 * AV_TIME_BASE; + pls->ctx->interrupt_callback = s->interrupt_callback; url = av_strdup(pls->segments[0]->url); ret = av_probe_input_buffer(&pls->pb, &in_fmt, url, NULL, 0, 0); av_free(url); |