[PATH edid-decode] Fix eotf map reading, each transfer function is encoded in 1 bit

Arnaud Vrac rawoul at gmail.com
Thu Aug 31 19:32:26 UTC 2017


Signed-off-by: Arnaud Vrac <avrac at freebox.fr>
---
 edid-decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/edid-decode.c b/edid-decode.c
index ba710f0..ac1abd1 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1126,7 +1126,7 @@ cea_hdr_metadata_block(unsigned char *x)
     if (length >= 3) {
 	printf("    Electro optical transfer functions:\n");
 	for (i = 0; i < 6; i++) {
-	    if (x[2] >> i) {
+	    if ((x[2] >> i) & 1) {
 		printf("      %s\n", i < ARRAY_SIZE(eotf_map) ?
 		       eotf_map[i] : "Unknown");
 	    }
-- 
2.13.0



More information about the xorg-devel mailing list