diff options
author | wm4 <wm4@nowhere> | 2014-05-01 14:24:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-02 01:08:05 +0200 |
commit | a014a2402df29db34bddd8f8899941618e1275bd (patch) | |
tree | 59d560eda05087546953df2c6572be5ac25a460f /video/mp_image.c | |
parent | 50538c0ea2c00269912aca0dfa7101d64a4f1cc7 (diff) | |
download | mpv-a014a2402df29db34bddd8f8899941618e1275bd.tar.bz2 mpv-a014a2402df29db34bddd8f8899941618e1275bd.tar.xz |
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.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |