summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-09-19 19:04:47 +0200
committerwm4 <wm4@nowhere>2017-09-19 19:04:47 +0200
commit06927fefdd8eac166083157e63ae356b31bc1b2d (patch)
tree31192ebb7f1a2777ae5fd57f2b2138b0cc371d39 /video
parent810990a7465f31ee5ff5e29ebea1fb783e5ed502 (diff)
downloadmpv-06927fefdd8eac166083157e63ae356b31bc1b2d.tar.bz2
mpv-06927fefdd8eac166083157e63ae356b31bc1b2d.tar.xz
mp_image: always copy pixel aspect ratio
I see no reason not to do this. I think the check comes from the time when mp_image stored the image aspect ratio, instead of the pixel aspect ratio, where the logic might have made more sense.
Diffstat (limited to 'video')
-rw-r--r--video/mp_image.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 5aa5647759..326feb233e 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -521,10 +521,8 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src)
dst->params.rotate = src->params.rotate;
dst->params.stereo_in = src->params.stereo_in;
dst->params.stereo_out = src->params.stereo_out;
- if (dst->w == src->w && dst->h == src->h) {
- dst->params.p_w = src->params.p_w;
- dst->params.p_h = src->params.p_h;
- }
+ dst->params.p_w = src->params.p_w;
+ dst->params.p_h = src->params.p_h;
dst->params.color = src->params.color;
dst->params.chroma_location = src->params.chroma_location;
dst->params.spherical = src->params.spherical;