aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu Jianhua <jianhua.wu@intel.com>2021-12-11 03:05:03 +0800
committerLynne <dev@lynne.ee>2021-12-10 20:50:13 +0100
commitf176669a374c16d45bb0b8464de3b8a73f791e2d (patch)
treeab979fd0acf4eade097bdcf4d84a07f87d3eae3b
parentf106c7228503241d044fb404d1012047d6452f74 (diff)
downloadffmpeg-f176669a374c16d45bb0b8464de3b8a73f791e2d.tar.gz
avfilter/vf_transpose_vulkan: simplify config_props_output function
It's no need to assign outlink here, which has been done in ff_vk_filter_config_output already. Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
-rw-r--r--libavfilter/vf_transpose_vulkan.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_transpose_vulkan.c b/libavfilter/vf_transpose_vulkan.c
index eceb9b9011..ce83cf0fd7 100644
--- a/libavfilter/vf_transpose_vulkan.c
+++ b/libavfilter/vf_transpose_vulkan.c
@@ -262,7 +262,6 @@ static av_cold void transpose_vulkan_uninit(AVFilterContext *avctx)
static int config_props_output(AVFilterLink *outlink)
{
- int err = 0;
AVFilterContext *avctx = outlink->src;
TransposeVulkanContext *s = avctx->priv;
FFVulkanContext *vkctx = &s->vkctx;
@@ -271,21 +270,13 @@ static int config_props_output(AVFilterLink *outlink)
vkctx->output_width = inlink->h;
vkctx->output_height = inlink->w;
- RET(ff_vk_filter_config_output(outlink));
-
- outlink->w = inlink->h;
- outlink->h = inlink->w;
-
if (inlink->sample_aspect_ratio.num)
outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 },
inlink->sample_aspect_ratio);
else
outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
- err = 0;
-
-fail:
- return err;
+ return ff_vk_filter_config_output(outlink);
}
#define OFFSET(x) offsetof(TransposeVulkanContext, x)