about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-12-17 00:04:18 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-12-17 00:04:18 +0000
commit76758a935da3169d8fd556532f4180b109589561 (patch)
treee6552a94b33a413798471feafb97c4334b4b98c8 /converter
parent12b7402c6461f2b1d186e6e13124ff6c48fc41c6 (diff)
downloadnetpbm-mirror-76758a935da3169d8fd556532f4180b109589561.tar.gz
netpbm-mirror-76758a935da3169d8fd556532f4180b109589561.tar.xz
netpbm-mirror-76758a935da3169d8fd556532f4180b109589561.zip
Release 10.73.24
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@3459 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/bmptopnm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c
index 9e476ef4..bf4d10f8 100644
--- a/converter/other/bmptopnm.c
+++ b/converter/other/bmptopnm.c
@@ -227,6 +227,11 @@ GetCieXyzTriple(FILE * const fp) {
 
 
 
+static struct pixelformat
+defaultPixelformat(unsigned int const bitCount);
+
+
+
 static void
 readOffBytes(FILE * const fp, unsigned int const nbytes) {
 /*----------------------------------------------------------------------------
@@ -318,6 +323,8 @@ readOs2InfoHeader(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;
     
     pm_message("OS/2 BMP, %dx%dx%d",