mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
img_format: fix padding calculation with P010
This was broken during refactoring commit e2d90b38
before pushing it.
This commit is contained in:
parent
12b4f177ec
commit
e4a1086cfb
@ -271,7 +271,7 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int mpfmt)
|
||||
if (desc.flags & (MP_IMGFLAG_YUV_P | MP_IMGFLAG_RGB_P | MP_IMGFLAG_YUV_NV))
|
||||
{
|
||||
desc.component_bits += shift;
|
||||
desc.component_full_bits = (desc.component_bits + shift + 7) / 8 * 8;
|
||||
desc.component_full_bits = (desc.component_bits + 7) / 8 * 8;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user