fftools/ffmpeg: add a function adding a destination filter for InputStream

This way filtering code does not directly mess with InputStream
internals. Will become more useful in following commits.
This commit is contained in:
Anton Khirnov
2023-04-11 12:57:30 +02:00
parent c7438e8737
commit ae071c9e39
3 changed files with 10 additions and 5 deletions

View File

@@ -567,6 +567,12 @@ void ist_output_add(InputStream *ist, OutputStream *ost)
ist->outputs[ist->nb_outputs - 1] = ost;
}
void ist_filter_add(InputStream *ist, InputFilter *ifilter)
{
GROW_ARRAY(ist->filters, ist->nb_filters);
ist->filters[ist->nb_filters - 1] = ifilter;
}
static const AVCodec *choose_decoder(const OptionsContext *o, AVFormatContext *s, AVStream *st,
enum HWAccelID hwaccel_id, enum AVHWDeviceType hwaccel_device_type)