changeset 36107:72818542220d

Fix bpp calculation for XYZ format.
author reimar
date Wed, 01 May 2013 18:52:38 +0000
parents 959e6a52e5b0
children 8d23fb99091b
files libmpcodecs/mp_image.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/mp_image.c	Wed May 01 18:46:08 2013 +0000
+++ b/libmpcodecs/mp_image.c	Wed May 01 18:52:38 2013 +0000
@@ -122,7 +122,7 @@
         return;
     }
     if (IMGFMT_IS_XYZ(out_fmt)) {
-        mpi->bpp=3*IMGFMT_XYZ_DEPTH(out_fmt);
+        mpi->bpp=3*((IMGFMT_XYZ_DEPTH(out_fmt) + 7) & ~7);
         return;
     }
     mpi->num_planes=3;