From e4a1086cfb576226122e59379430f0d12f31ac1d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Jan 2016 12:45:52 +0100 Subject: img_format: fix padding calculation with P010 This was broken during refactoring commit e2d90b38 before pushing it. --- video/img_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/img_format.c b/video/img_format.c index 67ad3e2bdd..82136b5192 100644 --- a/video/img_format.c +++ b/video/img_format.c @@ -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; } } -- cgit v1.2.3