You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/vf_program_opencl: Free inpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -287,13 +287,11 @@ static av_cold int program_opencl_init(AVFilterContext *avctx)
|
||||
|
||||
input.config_props = &ff_opencl_filter_config_input;
|
||||
|
||||
err = ff_append_inpad(avctx, &input);
|
||||
if (err < 0) {
|
||||
av_freep(&input.name);
|
||||
err = ff_append_inpad_free_name(avctx, &input);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -302,14 +300,11 @@ static av_cold void program_opencl_uninit(AVFilterContext *avctx)
|
||||
{
|
||||
ProgramOpenCLContext *ctx = avctx->priv;
|
||||
cl_int cle;
|
||||
int i;
|
||||
|
||||
if (ctx->nb_inputs > 0) {
|
||||
ff_framesync_uninit(&ctx->fs);
|
||||
|
||||
av_freep(&ctx->frames);
|
||||
for (i = 0; i < avctx->nb_inputs; i++)
|
||||
av_freep(&avctx->input_pads[i].name);
|
||||
}
|
||||
|
||||
if (ctx->kernel) {
|
||||
|
Reference in New Issue
Block a user