diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-25 15:36:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-02-14 15:08:49 +0100 |
commit | 86417b759f789383ab658e2eb90890477a79eedf (patch) | |
tree | dc2acc804265c4e6c5283daf83f49df006c3e6f3 /libavfilter/tests | |
parent | 1e7d2007c3aca1cc1cd3b1ca409f4ded6c885f86 (diff) | |
download | ffmpeg-86417b759f789383ab658e2eb90890477a79eedf.tar.gz |
lavfi: get rid of FF_INTERNAL_FIELDS
This hack is used to limit the visibility of some AVFilterLink fields to
only certain files. Replace it with the same pattern that is used e.g.
in lavf AVStream/FFStream and avoid exposing these internal fields in a
public header completely.
Diffstat (limited to 'libavfilter/tests')
-rw-r--r-- | libavfilter/tests/filtfmts.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavfilter/tests/filtfmts.c b/libavfilter/tests/filtfmts.c index 909c1e8dc9..3451ed891e 100644 --- a/libavfilter/tests/filtfmts.c +++ b/libavfilter/tests/filtfmts.c @@ -25,12 +25,11 @@ #include "libavutil/pixdesc.h" #include "libavutil/samplefmt.h" -#define FF_INTERNAL_FIELDS 1 -#include "libavfilter/framequeue.h" - #include "libavfilter/avfilter.h" #include "libavfilter/formats.h" +#include "libavfilter/framequeue.h" #include "libavfilter/internal.h" +#include "libavfilter/link_internal.h" static void print_formats_internal(AVFilterLink **links, const AVFilterPad *pads, unsigned nb, size_t fmts_cfg_offset, @@ -123,7 +122,7 @@ int main(int argc, char **argv) /* create a link for each of the input pads */ for (i = 0; i < filter_ctx->nb_inputs; i++) { - AVFilterLink *link = av_mallocz(sizeof(AVFilterLink)); + AVFilterLink *link = av_mallocz(sizeof(FilterLinkInternal)); if (!link) { fprintf(stderr, "Unable to allocate memory for filter input link\n"); ret = 1; @@ -133,7 +132,7 @@ int main(int argc, char **argv) filter_ctx->inputs[i] = link; } for (i = 0; i < filter_ctx->nb_outputs; i++) { - AVFilterLink *link = av_mallocz(sizeof(AVFilterLink)); + AVFilterLink *link = av_mallocz(sizeof(FilterLinkInternal)); if (!link) { fprintf(stderr, "Unable to allocate memory for filter output link\n"); ret = 1; |