From ebf403d4015d30f19a37895efdce201300c9b418 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 17 Dec 2018 00:03:49 +0000 Subject: Release 10.84.05 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3458 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/bmptopnm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'converter') diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c index ad92db26..787b9020 100644 --- a/converter/other/bmptopnm.c +++ b/converter/other/bmptopnm.c @@ -250,6 +250,11 @@ GetCieXyzTriple(FILE * const ifP) { +static struct pixelformat +defaultPixelformat(unsigned int const bitCount); + + + static void readOffBytes(FILE * const fp, unsigned int const nbytes) { /*---------------------------------------------------------------------------- @@ -337,6 +342,8 @@ readOs2InfoHeaderRest(FILE * const ifP, pm_error("Unrecognized bits per pixel in OS/2 BMP file header: %d", headerP->cBitCount); + headerP->pixelformat = defaultPixelformat(headerP->cBitCount); + headerP->compression = BMPCOMP_RGB; } -- cgit 1.4.1