summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2017-08-31 13:41:15 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-07 12:13:33 -0400
commit3f134e35f0953ee13202b7a23948f207393167e3 (patch)
tree96b8e4d4fb82d9a4cdbc89149ba113f8549d8774
parent1ea2b1fef85cdaba11db519eda8c4e1d294022be (diff)
edid-decode: allow for comma separated hex values
Useful when the hex dump comes from source code. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
-rw-r--r--edid-decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edid-decode.c b/edid-decode.c
index d38d2a3..ea44325 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1976,7 +1976,7 @@ extract_edid(int fd)
}
/* Is the EDID provided in hex? */
- for (i = 0; i < 32 && (isspace(ret[i]) || tolower(ret[i]) == 'x' || isxdigit(ret[i])); i++);
+ for (i = 0; i < 32 && (isspace(ret[i]) || ret[i] == ',' || tolower(ret[i]) == 'x' || isxdigit(ret[i])); i++);
if (i == 32) {
out = malloc(size >> 1);
if (out == NULL) {