diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-20 13:37:06 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-07-03 15:57:13 +0200 |
commit | fe490ec16531ac2d10a6bd8d3be560d31b00af67 (patch) | |
tree | ee06bc9cbb4285f4eef28a65bf7fbd1ef316ae2d /libswscale/utils.c | |
parent | 0f8e0957d23038f80c8c6193b4f940cfd0b42c9c (diff) |
sws: separate the calls to scaled vs unscaled conversion
Call the scaler function directly rather than through a function
pointer. Drop the now-unused return value from ff_getSwsFunc() and
rename the function to reflect its new role.
This will be useful in the following commits, where it will become
important that the amount of output is different for scaled vs unscaled
case.
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 974e2d5179..aab7cdb2a2 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1847,7 +1847,8 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, } } - c->swscale = ff_getSwsFunc(c); + ff_sws_init_scale(c); + return ff_init_filters(c); nomem: ret = AVERROR(ENOMEM); |