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.
This commit is contained in:
wm4 2017-09-19 19:04:47 +02:00
parent 810990a746
commit 06927fefdd
1 changed files with 2 additions and 4 deletions

View File

@ -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;