Unified · Split
| @@ -319,10 +319,8 @@ static av_cold int init(AVFilterContext *ctx) · 318 unmodified lines | ||
| 319 | 319 | else |
| 320 | 320 | pad.get_buffer.audio = get_audio_buffer; |
| 321 | 321 | pad.name = av_asprintf("in%d:%c%d", seg, "va"[type], str); |
| 322 | − if ((ret = ff_append_inpad(ctx, &pad)) < 0) { | |
| 323 | − av_freep(&pad.name); | |
| 322 | + if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) | |
| 324 | 323 | return ret; |
| 325 | − } | |
| 326 | 324 | } |
| 327 | 325 | } |
| 328 | 326 | } |
| @@ -334,10 +332,8 @@ static av_cold int init(AVFilterContext *ctx) · 5 unmodified lines | ||
| 334 | 332 | .config_props = config_output, |
| 335 | 333 | }; |
| 336 | 334 | pad.name = av_asprintf("out:%c%d", "va"[type], str); |
| 337 | − if ((ret = ff_append_outpad(ctx, &pad)) < 0) { | |
| 338 | − av_freep(&pad.name); | |
| 335 | + if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0) | |
| 339 | 336 | return ret; |
| 340 | − } | |
| 341 | 337 | } |
| 342 | 338 | } |
| 343 | 339 | |
| @@ -351,12 +347,7 @@ static av_cold int init(AVFilterContext *ctx) · 7 unmodified lines | ||
| 351 | 347 | static av_cold void uninit(AVFilterContext *ctx) |
| 352 | 348 | { |
| 353 | 349 | ConcatContext *cat = ctx->priv; |
| 354 | − unsigned i; | |
| 355 | 350 | |
| 356 | − for (i = 0; i < ctx->nb_inputs; i++) | |
| 357 | − av_freep(&ctx->input_pads[i].name); | |
| 358 | − for (i = 0; i < ctx->nb_outputs; i++) | |
| 359 | − av_freep(&ctx->output_pads[i].name); | |
| 360 | 351 | av_freep(&cat->in); |
| 361 | 352 | } |
| 362 | 353 | |