Skip to content

Commit

Permalink
lavf/dashdec: enable custom interrup callback in sub-demuxer
Browse files Browse the repository at this point in the history
Enable the custom callback in sub-demuxer

Reviewed-by: Steven Liu <[email protected]>
Signed-off-by: Jun Zhao <[email protected]>
  • Loading branch information
mypopydev committed Jul 20, 2020
1 parent 4239a8c commit ba31fdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/dashdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,7 @@ static int reopen_demux_for_component(AVFormatContext *s, struct representation
pls->ctx->flags = AVFMT_FLAG_CUSTOM_IO;
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;
ret = av_probe_input_buffer(&pls->pb, &in_fmt, "", NULL, 0, 0);
if (ret < 0) {
av_log(s, AV_LOG_ERROR, "Error when loading first fragment, playlist %d\n", (int)pls->rep_idx);
Expand Down

0 comments on commit ba31fdf

Please sign in to comment.