summaryrefslogtreecommitdiffstats
path: root/filters/f_autoconvert.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-12 21:55:35 +0200
committerwm4 <wm4@nowhere>2020-04-13 15:56:27 +0200
commitc99d95ac17364c46bc161867d1102361f05a6cc5 (patch)
tree25b1033cbd19b87ec076f1c91b26677a07788772 /filters/f_autoconvert.c
parent28f2d7454d5ea997dec691376ebcdf4c4e0454b4 (diff)
downloadmpv-c99d95ac17364c46bc161867d1102361f05a6cc5.tar.bz2
mpv-c99d95ac17364c46bc161867d1102361f05a6cc5.tar.xz
vf_format: add gross mechanism for forcing scaler for testing
This sucks, but is helpful for testing. Obviously, it would be much nicer if there were a way to specify _all_ scaler options per filter (if the user wanted), instead of always using the global options. But this is "too hard" for now. For testing, it is extremely convenient to select the scaler backend, so add this option, but make clear that it could go away. We'd delete it once there is a better mechanism for this.
Diffstat (limited to 'filters/f_autoconvert.c')
-rw-r--r--filters/f_autoconvert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/filters/f_autoconvert.c b/filters/f_autoconvert.c
index 5e0caaf321..7452a13ae8 100644
--- a/filters/f_autoconvert.c
+++ b/filters/f_autoconvert.c
@@ -244,6 +244,8 @@ static bool build_image_converter(struct mp_autoconvert *c, struct mp_log *log,
goto fail;
}
+ sws->force_scaler = c->force_scaler;
+
int out = mp_sws_find_best_out_format(sws, src_fmt, fmts, num_fmts);
if (!out) {
mp_err(log, "can't find video conversion for %s\n",