[FFmpeg-devel] [PATCH 2/3] lavf/hls: enable custom interrup callback in sub-demuxer
Steven Liu
lingjiujianke at gmail.com
Mon Jul 20 05:17:44 EEST 2020
Jun Zhao <mypopydev at gmail.com> 于2020年7月18日周六 下午7:56写道:
>
> From: Jun Zhao <barryjzhao at tencent.com>
>
> Enable the custom callback in sub-demuxer
>
> Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> ---
> libavformat/hls.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index ba17c4e..cf0b71d 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);
> --
> 2.7.4
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
LGTM
Thanks
Steven
More information about the ffmpeg-devel
mailing list