about summary refs log tree commit diff
path: root/converter/other/pnmtops.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/pnmtops.c')
-rw-r--r--converter/other/pnmtops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index b43cb483..1568bd28 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -1001,6 +1001,8 @@ computeDepth(xelval         const inputMaxval,
         *bitspersampleP = 2;
     else if (bitsRequiredByMaxval <= 4)
         *bitspersampleP = 4;
+    else if (bitsRequiredByMaxval <= 8)
+        *bitspersampleP = 8;
     else {
         /* Post script level 2 defines a format with 12 bits per sample,
            but I don't know the details of that format (both RLE and