It's no need to assign outlink here, which has been done in ff_vk_filter_config_output already.
Unified · Split
| @@ -262,7 +262,6 @@ static av_cold void transpose_vulkan_uninit(AVFilterContext *avctx) · 261 unmodified lines | ||
| 262 | 262 | |
| 263 | 263 | static int config_props_output(AVFilterLink *outlink) |
| 264 | 264 | { |
| 265 | − int err = 0; | |
| 266 | 265 | AVFilterContext *avctx = outlink->src; |
| 267 | 266 | TransposeVulkanContext *s = avctx->priv; |
| 268 | 267 | FFVulkanContext *vkctx = &s->vkctx; |
| @@ -271,21 +270,13 @@ static int config_props_output(AVFilterLink *outlink) · 2 unmodified lines | ||
| 271 | 270 | vkctx->output_width = inlink->h; |
| 272 | 271 | vkctx->output_height = inlink->w; |
| 273 | 272 | |
| 274 | − RET(ff_vk_filter_config_output(outlink)); | |
| 275 | − | |
| 276 | − outlink->w = inlink->h; | |
| 277 | − outlink->h = inlink->w; | |
| 278 | − | |
| 279 | 273 | if (inlink->sample_aspect_ratio.num) |
| 280 | 274 | outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, |
| 281 | 275 | inlink->sample_aspect_ratio); |
| 282 | 276 | else |
| 283 | 277 | outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; |
| 284 | 278 | |
| 285 | − err = 0; | |
| 286 | − | |
| 287 | −fail: | |
| 288 | − return err; | |
| 279 | + return ff_vk_filter_config_output(outlink); | |
| 289 | 280 | } |
| 290 | 281 | |
| 291 | 282 | #define OFFSET(x) offsetof(TransposeVulkanContext, x) |