[PATCH] fix typo in supported sample sizes and maximum bit rate

reinhard.zitzmann at gmail.com reinhard.zitzmann at gmail.com
Tue Apr 26 07:00:42 UTC 2016


From: Reinhard Zitzmann <reinhard.zitzmann at gmail.com>

Signed-off-by: Reinhard Zitzmann <reinhard.zitzmann at gmail.com>
---
 edid-decode.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/edid-decode.c b/edid-decode.c
index 0b94ad5..62c732d 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -629,11 +629,11 @@ cea_audio_block(unsigned char *x)
 	       (x[i+1] & 0x01) ? " 32" : "");
 	if (format == 1) {
 	    printf("    Supported sample sizes (bits):%s%s%s\n",
-		  (x[2] & 0x04) ? " 24" : "",
-		  (x[2] & 0x02) ? " 20" : "",
-		  (x[2] & 0x01) ? " 16" : "");
+		  (x[i+2] & 0x04) ? " 24" : "",
+		  (x[i+2] & 0x02) ? " 20" : "",
+		  (x[i+2] & 0x01) ? " 16" : "");
 	} else if (format <= 8) {
-	    printf("    Maximum bit rate: %d kHz\n", x[2] * 8);
+	    printf("    Maximum bit rate: %d kHz\n", x[i+2] * 8);
 	}
     }
 }
-- 
2.5.5



More information about the xorg-devel mailing list