Unified · Split
| @@ -52,7 +52,9 @@ typedef struct TransContext { · 51 unmodified lines | |||
| 52 | TransVtable vtables[4]; | 52 | TransVtable vtables[4]; |
| 53 | } TransContext; | 53 | } TransContext; |
| 54 | 54 | ||
| 55 | static int query_formats(AVFilterContext *ctx) | 55 | static int query_formats(const AVFilterContext *ctx, |
| 56 | AVFilterFormatsConfig **cfg_in, | ||
| 57 | AVFilterFormatsConfig **cfg_out) | ||
| 56 | { | 58 | { |
| 57 | AVFilterFormats *pix_fmts = NULL; | 59 | AVFilterFormats *pix_fmts = NULL; |
| 58 | const AVPixFmtDescriptor *desc; | 60 | const AVPixFmtDescriptor *desc; |
| @@ -68,7 +70,7 @@ static int query_formats(AVFilterContext *ctx) · 9 unmodified lines | |||
| 68 | } | 70 | } |
| 69 | 71 | ||
| 70 | 72 | ||
| 71 | return ff_set_common_formats(ctx, pix_fmts); | 73 | return ff_set_common_formats2(ctx, cfg_in, cfg_out, pix_fmts); |
| 72 | } | 74 | } |
| 73 | 75 | ||
| 74 | static inline void transpose_block_8_c(uint8_t *src, ptrdiff_t src_linesize, | 76 | static inline void transpose_block_8_c(uint8_t *src, ptrdiff_t src_linesize, |
| @@ -412,6 +414,6 @@ const AVFilter ff_vf_transpose = { · 337 unmodified lines | |||
| 412 | .priv_class = &transpose_class, | 414 | .priv_class = &transpose_class, |
| 413 | FILTER_INPUTS(avfilter_vf_transpose_inputs), | 415 | FILTER_INPUTS(avfilter_vf_transpose_inputs), |
| 414 | FILTER_OUTPUTS(avfilter_vf_transpose_outputs), | 416 | FILTER_OUTPUTS(avfilter_vf_transpose_outputs), |
| 415 | FILTER_QUERY_FUNC(query_formats), | 417 | FILTER_QUERY_FUNC2(query_formats), |
| 416 | .flags = AVFILTER_FLAG_SLICE_THREADS, | 418 | .flags = AVFILTER_FLAG_SLICE_THREADS, |
| 417 | }; | 419 | }; |