From 06927fefdd8eac166083157e63ae356b31bc1b2d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 19 Sep 2017 19:04:47 +0200 Subject: [PATCH] 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. --- video/mp_image.c | 6 ++---- 1 file 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;