diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-08-05 18:00:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-08-15 19:34:24 +0200 |
commit | 7f17e0e6dd0b28b29295c1eeb1a38546eebc3946 (patch) | |
tree | 450c2507aab591b2428f63f0860be3c9fa155846 /libavfilter/vf_hwdownload.c | |
parent | ce24b5ba8f8d61eae518809e1188f74614db73d5 (diff) | |
download | ffmpeg-7f17e0e6dd0b28b29295c1eeb1a38546eebc3946.tar.gz |
lavfi: move AVFilterLink.hw_frames_ctx to FilterLink
Diffstat (limited to 'libavfilter/vf_hwdownload.c')
-rw-r--r-- | libavfilter/vf_hwdownload.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_hwdownload.c b/libavfilter/vf_hwdownload.c index 5ef23cb5d4..75c4b215be 100644 --- a/libavfilter/vf_hwdownload.c +++ b/libavfilter/vf_hwdownload.c @@ -24,6 +24,7 @@ #include "libavutil/pixdesc.h" #include "avfilter.h" +#include "filters.h" #include "formats.h" #include "internal.h" #include "video.h" @@ -50,18 +51,19 @@ static int hwdownload_query_formats(AVFilterContext *avctx) static int hwdownload_config_input(AVFilterLink *inlink) { + FilterLink *l = ff_filter_link(inlink); AVFilterContext *avctx = inlink->dst; HWDownloadContext *ctx = avctx->priv; av_buffer_unref(&ctx->hwframes_ref); - if (!inlink->hw_frames_ctx) { + if (!l->hw_frames_ctx) { av_log(ctx, AV_LOG_ERROR, "The input must have a hardware frame " "reference.\n"); return AVERROR(EINVAL); } - ctx->hwframes_ref = av_buffer_ref(inlink->hw_frames_ctx); + ctx->hwframes_ref = av_buffer_ref(l->hw_frames_ctx); if (!ctx->hwframes_ref) return AVERROR(ENOMEM); |