[PATCH edid-decode 2/3] Include the last VIC in the CEA video block

Thomas Wood thomas.wood at intel.com
Fri Sep 27 04:27:00 PDT 2013


Signed-off-by: Thomas Wood <thomas.wood at intel.com>
---
 edid-decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/edid-decode.c b/edid-decode.c
index 3830e0c..b710bb5 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -711,7 +711,7 @@ cea_video_block(unsigned char *x)
     int i;
     int length = x[0] & 0x1f;
 
-    for (i = 1; i < length; i++)  {
+    for (i = 1; i <= length; i++)  {
 	unsigned char vic = x[i] & 0x7f;
 	unsigned char native = x[i] & 0x80;
 	const char *mode;
-- 
1.8.3.1



More information about the dri-devel mailing list