summaryrefslogtreecommitdiff
path: root/libavfilter/vf_libplacebo.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-01-30 20:34:55 +0100
committerNiklas Haas <git@haasn.dev>2023-01-30 20:34:55 +0100
commit9bfdd8524e4d3657be4057798bd4f015322827b2 (patch)
treeb0abbcdc19577e3828125ceba2a22ee4456a207e /libavfilter/vf_libplacebo.c
parent5508e04c7b710616e33407ac2b3f8d616cb745f0 (diff)
downloadffmpeg-9bfdd8524e4d3657be4057798bd4f015322827b2.tar.gz
avfilter/vf_libplacebo: suppress cast warning
This warning was introduced when ee65039 removed the cast.
Diffstat (limited to 'libavfilter/vf_libplacebo.c')
-rw-r--r--libavfilter/vf_libplacebo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index d3c62d12a4..12abca4cc7 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -262,8 +262,7 @@ static int init_vulkan(AVFilterContext *avctx)
return AVERROR(EINVAL);
}
- avhwctx = avctx->hw_device_ctx->data;
-
+ avhwctx = (AVHWDeviceContext *) avctx->hw_device_ctx->data;
if (avhwctx->type != AV_HWDEVICE_TYPE_VULKAN) {
av_log(s, AV_LOG_ERROR, "Expected vulkan hwdevice for vf_libplacebo, got %s.\n",
av_hwdevice_get_type_name(avhwctx->type));