History

avfilter/vf_program_opencl: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit 65884bd1 parent 97c79611 file · +2 −7Browse files

Unified · Split

libavfilter/vf_program_opencl.c+2−7
@@ -287,11 +287,9 @@ static av_cold int program_opencl_init(AVFilterContext *avctx) · 286 unmodified lines
287287
288288 input.config_props = &ff_opencl_filter_config_input;
289289
290− err = ff_append_inpad(avctx, &input);
291− if (err < 0) {
292− av_freep(&input.name);
290+ err = ff_append_inpad_free_name(avctx, &input);
291+ if (err < 0)
293292 return err;
294− }
295293 }
296294 }
297295
@@ -302,14 +300,11 @@ static av_cold void program_opencl_uninit(AVFilterContext *avctx) · 4 unmodified lines
302300 {
303301 ProgramOpenCLContext *ctx = avctx->priv;
304302 cl_int cle;
305− int i;
306303
307304 if (ctx->nb_inputs > 0) {
308305 ff_framesync_uninit(&ctx->fs);
309306
310307 av_freep(&ctx->frames);
311− for (i = 0; i < avctx->nb_inputs; i++)
312− av_freep(&avctx->input_pads[i].name);
313308 }
314309
315310 if (ctx->kernel) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t