[FFmpeg-devel] [PATCH 003/218] avfilter/formats: Add function to create AVFilterFormats with one entry
Nicolas George
george at nsup.org
Tue Oct 5 13:51:22 EEST 2021
Andreas Rheinhardt (12021-09-30):
> Most instances ff_add_formats() actually only ever add one format;
> this function can be used to simplify those callers.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavfilter/formats.c | 6 ++++++
> libavfilter/formats.h | 6 ++++++
> 2 files changed, 12 insertions(+)
Even if there is only one, it is still a formats list, and the name of
the function should reflect it; "make_format", singular, is not clear.
ff_make_formats_list_single() maybe?
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211005/8aefabff/attachment.sig>
More information about the ffmpeg-devel
mailing list