From 477ab4c4814aaa159126a34b6a82e977fabfde98 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 5 May 2020 21:34:45 +0000 Subject: [PATCH] tight: Allow lossy encoding with 16 bpp --- src/tight.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tight.c b/src/tight.c index 8206a1c..19cb362 100644 --- a/src/tight.c +++ b/src/tight.c @@ -43,10 +43,8 @@ enum tight_quality tight_get_quality(struct tight_encoder* self) struct nvnc_client* client = container_of(self, struct nvnc_client, tight_encoder); - /* Note: The standard specifies that 16 is OK too, but we can only - * handle 32 - */ - if (client->pixfmt.bits_per_pixel != 32) + if (client->pixfmt.bits_per_pixel != 16 && + client->pixfmt.bits_per_pixel != 32) return TIGHT_QUALITY_LOSSLESS; for (size_t i = 0; i < client->n_encodings; ++i)