[MPlayer-cvslog] r36201 - trunk/libmpcodecs/mp_image.c
reimar
subversion at mplayerhq.hu
Wed May 1 20:52:38 CEST 2013
Author: reimar
Date: Wed May 1 20:52:38 2013
New Revision: 36201
Log:
Fix bpp calculation for XYZ format.
Modified:
trunk/libmpcodecs/mp_image.c
Modified: trunk/libmpcodecs/mp_image.c
==============================================================================
--- trunk/libmpcodecs/mp_image.c Wed May 1 20:46:08 2013 (r36200)
+++ trunk/libmpcodecs/mp_image.c Wed May 1 20:52:38 2013 (r36201)
@@ -122,7 +122,7 @@ void mp_image_setfmt(mp_image_t* mpi,uns
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;
More information about the MPlayer-cvslog
mailing list