diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-21 20:17:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-31 16:15:47 +0200 |
commit | 7ea10bfef3ac103854d975553bc1d43a5e3979d3 (patch) | |
tree | 1f8eae59d68f48984aa65c8fa32a64815c643911 /fftools/ffmpeg_filter.c | |
parent | da7ae627e1a6e0af46790b0ff1c58214ae178093 (diff) | |
download | ffmpeg-7ea10bfef3ac103854d975553bc1d43a5e3979d3.tar.gz |
fftools/ffmpeg_filter: store just the link label in OutputFilter
Not the entire AVFilterInOut. This is simpler.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 75317139ba..323e63b829 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -324,7 +324,7 @@ void fg_free(FilterGraph **pfg) for (int j = 0; j < fg->nb_outputs; j++) { OutputFilter *ofilter = fg->outputs[j]; - avfilter_inout_free(&ofilter->out_tmp); + av_freep(&ofilter->linklabel); av_freep(&ofilter->name); av_channel_layout_uninit(&ofilter->ch_layout); av_freep(&fg->outputs[j]); @@ -661,16 +661,18 @@ int init_complex_filtergraph(FilterGraph *fg) for (cur = outputs; cur;) { OutputFilter *const ofilter = ofilter_alloc(fg); - ofilter->out_tmp = cur; + ofilter->linklabel = cur->name; + cur->name = NULL; + ofilter->type = avfilter_pad_get_type(cur->filter_ctx->output_pads, cur->pad_idx); ofilter->name = describe_filter_link(fg, cur, 0); cur = cur->next; - ofilter->out_tmp->next = NULL; } fail: avfilter_inout_free(&inputs); + avfilter_inout_free(&outputs); avfilter_graph_free(&graph); return ret; } |