mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
avfilter/vf_libplacebo: suppress cast warning
This warning was introduced when ee65039
removed the cast.
This commit is contained in:
parent
5508e04c7b
commit
9bfdd8524e
@ -262,8 +262,7 @@ static int init_vulkan(AVFilterContext *avctx)
|
|||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
avhwctx = avctx->hw_device_ctx->data;
|
avhwctx = (AVHWDeviceContext *) avctx->hw_device_ctx->data;
|
||||||
|
|
||||||
if (avhwctx->type != AV_HWDEVICE_TYPE_VULKAN) {
|
if (avhwctx->type != AV_HWDEVICE_TYPE_VULKAN) {
|
||||||
av_log(s, AV_LOG_ERROR, "Expected vulkan hwdevice for vf_libplacebo, got %s.\n",
|
av_log(s, AV_LOG_ERROR, "Expected vulkan hwdevice for vf_libplacebo, got %s.\n",
|
||||||
av_hwdevice_get_type_name(avhwctx->type));
|
av_hwdevice_get_type_name(avhwctx->type));
|
||||||
|
Loading…
Reference in New Issue
Block a user