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/buffersink.c | |
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/buffersink.c')
-rw-r--r-- | libavfilter/buffersink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index af7f8ab58a..b0359280b6 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -30,15 +30,14 @@ #include "libavutil/internal.h" #include "libavutil/opt.h" -#define FF_INTERNAL_FIELDS 1 -#include "framequeue.h" - #include "audio.h" #include "avfilter.h" #include "buffersink.h" #include "filters.h" #include "formats.h" +#include "framequeue.h" #include "internal.h" +#include "link_internal.h" #include "video.h" typedef struct BufferSinkContext { @@ -178,9 +177,10 @@ static void uninit(AVFilterContext *ctx) static int activate(AVFilterContext *ctx) { BufferSinkContext *buf = ctx->priv; + FilterLinkInternal * const li = ff_link_internal(ctx->inputs[0]); if (buf->warning_limit && - ff_framequeue_queued_frames(&ctx->inputs[0]->fifo) >= buf->warning_limit) { + ff_framequeue_queued_frames(&li->fifo) >= buf->warning_limit) { av_log(ctx, AV_LOG_WARNING, "%d buffers queued in %s, something may be wrong.\n", buf->warning_limit, |