video: remove redundant function

mp_image_params_from_image() is now trivial and can be removed.
This commit is contained in:
wm4
2014-06-17 23:26:53 +02:00
parent 2827ff1eab
commit efa6b09b65
3 changed files with 2 additions and 11 deletions

View File

@@ -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) {