mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user