diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-26 00:28:19 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-26 12:42:36 +0200 |
commit | f348a967a35c0946de0d9f6bedb1f4025b09b334 (patch) | |
tree | f97fcafd2749b03f6d7472b258e2542b52ac4666 /libavformat/avlanguage.h | |
parent | 99feb59cf7ea9d6753502d76110ced96f128dac6 (diff) | |
download | ffmpeg-f348a967a35c0946de0d9f6bedb1f4025b09b334.tar.gz |
avfilter/formats: Avoid reallocations for video in ff_all_formats()
Up until now, the list of pixfmts is reallocated every time an entry
is added to it; there are currently 196 pixel formats, so this matters:
It causes 5541704 calls to av_realloc_array() in a typical FATE run,
which is the majority for said function (8095768 calls) and even
a large chunk of the calls to av_realloc() itself (12589508 calls).
Fix this by using ff_formats_pixdesc_filter() instead.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/avlanguage.h')
0 files changed, 0 insertions, 0 deletions