mirror of https://github.com/mpv-player/mpv
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:
parent
810990a746
commit
06927fefdd
|
@ -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.rotate = src->params.rotate;
|
||||||
dst->params.stereo_in = src->params.stereo_in;
|
dst->params.stereo_in = src->params.stereo_in;
|
||||||
dst->params.stereo_out = src->params.stereo_out;
|
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_w = src->params.p_w;
|
||||||
dst->params.p_h = src->params.p_h;
|
dst->params.p_h = src->params.p_h;
|
||||||
}
|
|
||||||
dst->params.color = src->params.color;
|
dst->params.color = src->params.color;
|
||||||
dst->params.chroma_location = src->params.chroma_location;
|
dst->params.chroma_location = src->params.chroma_location;
|
||||||
dst->params.spherical = src->params.spherical;
|
dst->params.spherical = src->params.spherical;
|
||||||
|
|
Loading…
Reference in New Issue