img_format: fix padding calculation with P010

This was broken during refactoring commit e2d90b38 before pushing it.
This commit is contained in:
wm4 2016-01-08 12:45:52 +01:00
parent 12b4f177ec
commit e4a1086cfb
1 changed files with 1 additions and 1 deletions

View File

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