mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
video: remove redundant function
mp_image_params_from_image() is now trivial and can be removed.
This commit is contained in:
@@ -254,8 +254,8 @@ int mp_sws_reinit(struct mp_sws_context *ctx)
|
||||
int mp_sws_scale(struct mp_sws_context *ctx, struct mp_image *dst,
|
||||
struct mp_image *src)
|
||||
{
|
||||
mp_image_params_from_image(&ctx->src, src);
|
||||
mp_image_params_from_image(&ctx->dst, dst);
|
||||
ctx->src = src->params;
|
||||
ctx->dst = dst->params;
|
||||
|
||||
int r = mp_sws_reinit(ctx);
|
||||
if (r < 0) {
|
||||
|
||||
Reference in New Issue
Block a user