about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-03-30 15:20:34 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-03-30 15:20:34 +0000
commitaba8428cb76de567abd4ffda1c3280f970d0692c (patch)
tree1ed6ebbfa3fde2201781ab357df8c7b5720c2db5 /converter/other
parent6623940f7e7584a9e1c42db14f4d49adedff7e52 (diff)
downloadnetpbm-mirror-aba8428cb76de567abd4ffda1c3280f970d0692c.tar.gz
netpbm-mirror-aba8428cb76de567abd4ffda1c3280f970d0692c.tar.xz
netpbm-mirror-aba8428cb76de567abd4ffda1c3280f970d0692c.zip
Release 10.47.72
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@3589 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-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 dfd175aa..fb89433c 100644
--- a/converter/other/bmptopnm.c
+++ b/converter/other/bmptopnm.c
@@ -231,6 +231,11 @@ GetCieXyzTriple(FILE * const fp) {
 
 
 
+static struct pixelformat
+defaultPixelformat(unsigned int const bitCount);
+
+
+
 static void
 readOffBytes(FILE * const fp, unsigned int const nbytes) {
 /*----------------------------------------------------------------------------
@@ -322,6 +327,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 = COMP_RGB;
     
     pm_message("OS/2 BMP, %dx%dx%d",