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

Submitted by Arnaud Vrac on Aug. 31, 2017, 7:32 p.m.

Details

Message ID 20170831193226.30082-1-avrac@freebox.fr
State New
Headers show
Series "Fix eotf map reading, each transfer function is encoded in 1 bit" ( rev: 1 ) in X.org (DEPRECATED - USE GITLAB)

Not browsing as part of any series.

Commit Message

Arnaud Vrac Aug. 31, 2017, 7:32 p.m.
Signed-off-by: Arnaud Vrac <avrac@freebox.fr>
---
 edid-decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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");
 	    }