mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avfilter/internal: Factor out executing a filter's execute_func
The current way of doing it involves writing the ctx parameter twice. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
32b56af6fb
commit
1b20853fb3
123 changed files with 332 additions and 261 deletions
|
|
@ -179,7 +179,8 @@ static int process_frame(FFFrameSync *fs)
|
|||
ff_fill_rectangle(&s->draw, &s->color, out->data, out->linesize,
|
||||
0, 0, outlink->w, outlink->h);
|
||||
|
||||
ctx->internal->execute(ctx, process_slice, out, NULL, FFMIN(s->nb_inputs, ff_filter_get_nb_threads(ctx)));
|
||||
ff_filter_execute(ctx, process_slice, out, NULL,
|
||||
FFMIN(s->nb_inputs, ff_filter_get_nb_threads(ctx)));
|
||||
|
||||
return ff_filter_frame(outlink, out);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue