Browse code

avfilter/af_apad: Support AVFILTER_FLAG_SUPPORT_TIMELINE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/05/09 04:59:28
Showing 1 changed files
... ...
@@ -89,7 +89,7 @@ static int request_frame(AVFilterLink *outlink)
89 89
 
90 90
     ret = ff_request_frame(ctx->inputs[0]);
91 91
 
92
-    if (ret == AVERROR_EOF) {
92
+    if (ret == AVERROR_EOF && !ctx->is_disabled) {
93 93
         int n_out = apad->packet_size;
94 94
         AVFrame *outsamplesref;
95 95
 
... ...
@@ -131,6 +131,7 @@ static const AVFilterPad apad_inputs[] = {
131 131
         .name         = "default",
132 132
         .type         = AVMEDIA_TYPE_AUDIO,
133 133
         .filter_frame = filter_frame,
134
+        .passthrough_filter_frame = filter_frame,
134 135
     },
135 136
     { NULL },
136 137
 };
... ...
@@ -152,4 +153,5 @@ AVFilter avfilter_af_apad = {
152 152
     .inputs        = apad_inputs,
153 153
     .outputs       = apad_outputs,
154 154
     .priv_class    = &apad_class,
155
+    .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE,
155 156
 };