From a014a2402df29db34bddd8f8899941618e1275bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 May 2014 14:24:20 +0200 Subject: video: fix screenshots with anamorphic video (Again.) This was caused by mp_image_set_params() not properly copying d_w/d_h, because mp_image_set_size() resets them. --- video/mp_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/mp_image.c') diff --git a/video/mp_image.c b/video/mp_image.c index a35ca42115..13b59b2c4e 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -193,10 +193,10 @@ void mp_image_set_size(struct mp_image *mpi, int w, int h) void mp_image_set_params(struct mp_image *image, const struct mp_image_params *params) { - image->params = *params; - // possibly reinitialize stuff + // possibly initialize other stuff mp_image_setfmt(image, params->imgfmt); mp_image_set_size(image, params->w, params->h); + image->params = *params; } struct mp_image *mp_image_alloc(int imgfmt, int w, int h) -- cgit v1.2.3