| 308 | } |
| 309 | |
| 310 | static av_cold int preinit(AVFilterContext *ctx) |
| 311 | { |
| 312 | ScaleContext *scale = ctx->priv; |
| 313 | |
| 314 | scale->sws = sws_alloc_context(); |
| 315 | if (!scale->sws) |
| 316 | return AVERROR(ENOMEM); |
| 317 | |
| 318 | // set threads=0, so we can later check whether the user modified it |
| 319 | scale->sws->threads = 0; |
| 320 | |
| 321 | ff_framesync_preinit(&scale->fs); |
| 322 | |
| 323 | return 0; |
| 324 | } |
| 325 | |
| 326 | static int do_scale(FFFrameSync *fs); |
| 327 |
nothing calls this directly
no test coverage detected