summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-08 12:45:52 +0100
committerwm4 <wm4@nowhere>2016-01-08 12:48:03 +0100
commite4a1086cfb576226122e59379430f0d12f31ac1d (patch)
tree21ca59d9c455536c0ba79011274739e12dfde03a
parent12b4f177ec3093588e96482608189b1c73b95d52 (diff)
downloadmpv-e4a1086cfb576226122e59379430f0d12f31ac1d.tar.bz2
mpv-e4a1086cfb576226122e59379430f0d12f31ac1d.tar.xz
img_format: fix padding calculation with P010
This was broken during refactoring commit e2d90b38 before pushing it.
-rw-r--r--video/img_format.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}