summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-17 23:26:53 +0200
committerwm4 <wm4@nowhere>2014-06-17 23:26:53 +0200
commitefa6b09b65f8c87a18745352777225adef7dbfc0 (patch)
tree3dda68b348c67ac66bf2cdf98245290a86213381 /video/sws_utils.c
parent2827ff1eabbe87f7f91ae174ba321cab06f5cbe0 (diff)
downloadmpv-efa6b09b65f8c87a18745352777225adef7dbfc0.tar.bz2
mpv-efa6b09b65f8c87a18745352777225adef7dbfc0.tar.xz
video: remove redundant function
mp_image_params_from_image() is now trivial and can be removed.
Diffstat (limited to 'video/sws_utils.c')
-rw-r--r--video/sws_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/sws_utils.c b/video/sws_utils.c
index cd69802342..46571c018d 100644
--- a/video/sws_utils.c
+++ b/video/sws_utils.c
@@ -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) {