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