aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersink.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-08-05 18:00:30 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-15 19:34:24 +0200
commit7f17e0e6dd0b28b29295c1eeb1a38546eebc3946 (patch)
tree450c2507aab591b2428f63f0860be3c9fa155846 /libavfilter/buffersink.c
parentce24b5ba8f8d61eae518809e1188f74614db73d5 (diff)
downloadffmpeg-7f17e0e6dd0b28b29295c1eeb1a38546eebc3946.tar.gz
lavfi: move AVFilterLink.hw_frames_ctx to FilterLink
Diffstat (limited to 'libavfilter/buffersink.c')
-rw-r--r--libavfilter/buffersink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index 2c1fa4c293..a184677937 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -188,7 +188,12 @@ MAKE_AVFILTERLINK_ACCESSOR(enum AVColorRange, color_range)
MAKE_AVFILTERLINK_ACCESSOR(int , sample_rate )
-MAKE_AVFILTERLINK_ACCESSOR(AVBufferRef * , hw_frames_ctx )
+AVBufferRef* av_buffersink_get_hw_frames_ctx(const AVFilterContext *ctx)
+{
+ FilterLink *l = ff_filter_link(ctx->inputs[0]);
+ av_assert0(ctx->filter->activate == activate);
+ return l->hw_frames_ctx;
+}
int av_buffersink_get_channels(const AVFilterContext *ctx)
{