fftools/ffmpeg_filter: simplify retrieving filter type
This commit is contained in:
parent
114cbaa316
commit
3c3e04c8a3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user