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_deshake_opencl.c | |
parent | ce24b5ba8f8d61eae518809e1188f74614db73d5 (diff) | |
download | ffmpeg-7f17e0e6dd0b28b29295c1eeb1a38546eebc3946.tar.gz |
lavfi: move AVFilterLink.hw_frames_ctx to FilterLink
Diffstat (limited to 'libavfilter/vf_deshake_opencl.c')
-rw-r--r-- | libavfilter/vf_deshake_opencl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_deshake_opencl.c b/libavfilter/vf_deshake_opencl.c index 5c3848c3ed..9e87007cbb 100644 --- a/libavfilter/vf_deshake_opencl.c +++ b/libavfilter/vf_deshake_opencl.c @@ -1112,6 +1112,7 @@ static int deshake_opencl_init(AVFilterContext *avctx) DeshakeOpenCLContext *ctx = avctx->priv; AVFilterLink *outlink = avctx->outputs[0]; AVFilterLink *inlink = avctx->inputs[0]; + FilterLink *inl = ff_filter_link(inlink); // Pointer to the host-side pattern buffer to be initialized and then copied // to the GPU PointPair *pattern_host = NULL; @@ -1146,7 +1147,7 @@ static int deshake_opencl_init(AVFilterContext *avctx) const int descriptor_buf_size = image_grid_32 * (BREIFN / 8); const int features_buf_size = image_grid_32 * sizeof(cl_float2); - const AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx->data; + const AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)inl->hw_frames_ctx->data; const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(hw_frames_ctx->sw_format); av_assert0(hw_frames_ctx); |