diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-04-02 12:25:33 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-09 10:34:18 +0200 |
commit | 3c3e04c8a3fc93ab5b18277d59db8990ab6ec943 (patch) | |
tree | d401ee2773b33067f4dd0c8226da3f49e44dd774 /fftools/ffmpeg_filter.c | |
parent | 114cbaa316d7d71d942229cd665e76a0a5e3c24b (diff) | |
download | ffmpeg-3c3e04c8a3fc93ab5b18277d59db8990ab6ec943.tar.gz |
fftools/ffmpeg_filter: simplify retrieving filter type
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 41d96267bc..ffbc13eb70 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1472,7 +1472,7 @@ fail: static int configure_output_filter(FilterGraph *fg, AVFilterGraph *graph, OutputFilter *ofilter, AVFilterInOut *out) { - switch (avfilter_pad_get_type(out->filter_ctx->output_pads, out->pad_idx)) { + switch (ofilter->type) { case AVMEDIA_TYPE_VIDEO: return configure_output_video_filter(fg, graph, ofilter, out); case AVMEDIA_TYPE_AUDIO: return configure_output_audio_filter(fg, graph, ofilter, out); default: av_assert0(0); return 0; |