NoiseContext *n = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
AVFrame *out;
- int ret, i;
+ int i;
if (av_frame_is_writable(inpicref)) {
out = inpicref;
for (i = 0; i < n->nb_planes; i++)
noise(out->data[i], inpicref->data[i], out->linesize[i],
inpicref->linesize[i], n->linesize[i], n->height[i], n, i);
+ emms_c();
- ret = ff_filter_frame(outlink, out);
if (inpicref != out)
av_frame_free(&inpicref);
- return ret;
+ return ff_filter_frame(outlink, out);
}
static av_cold int init(AVFilterContext *ctx)
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
- .get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
.config_props = config_input,
},
.inputs = noise_inputs,
.outputs = noise_outputs,
.priv_class = &noise_class,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE,
};