Commit 1e1015f3 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_apad: Support AVFILTER_FLAG_SUPPORT_TIMELINE

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent df9f9cab
...@@ -89,7 +89,7 @@ static int request_frame(AVFilterLink *outlink) ...@@ -89,7 +89,7 @@ static int request_frame(AVFilterLink *outlink)
ret = ff_request_frame(ctx->inputs[0]); ret = ff_request_frame(ctx->inputs[0]);
if (ret == AVERROR_EOF) { if (ret == AVERROR_EOF && !ctx->is_disabled) {
int n_out = apad->packet_size; int n_out = apad->packet_size;
AVFrame *outsamplesref; AVFrame *outsamplesref;
...@@ -131,6 +131,7 @@ static const AVFilterPad apad_inputs[] = { ...@@ -131,6 +131,7 @@ static const AVFilterPad apad_inputs[] = {
.name = "default", .name = "default",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.filter_frame = filter_frame, .filter_frame = filter_frame,
.passthrough_filter_frame = filter_frame,
}, },
{ NULL }, { NULL },
}; };
...@@ -152,4 +153,5 @@ AVFilter avfilter_af_apad = { ...@@ -152,4 +153,5 @@ AVFilter avfilter_af_apad = {
.inputs = apad_inputs, .inputs = apad_inputs,
.outputs = apad_outputs, .outputs = apad_outputs,
.priv_class = &apad_class, .priv_class = &apad_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment