[FFmpeg-devel] [PATCH 1/4] avfilter: Deduplicate default audio inputs/outputs

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sat Aug 5 10:38:50 EEST 2023


Andreas Rheinhardt:
> Lots of audio filters use very simple inputs or outputs:
> An array with a single AVFilterPad whose name is "default"
> and whose type is AVMEDIA_TYPE_AUDIO; everything else is unset.
> 
> Given that we never use pointer equality for inputs or outputs*,
> we can simply use a single AVFilterPad instead of dozens; this
> even saves .data.rel.ro (4784B here) as well as relocations.
> 
> *: In fact, several filters (like the filters in af_biquads.c)
> already use the same inputs; furthermore, ff_filter_alloc()
> duplicates the input and output pads so that we do not even
> work with the pads directly.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---

Will apply this patchset (with its potential for many conflicts) the day
after tomorrow unless there are objections.

- Andreas



More information about the ffmpeg-devel mailing list