This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: edid-decode: be more relaxed on InfoFrames format Author: Dmitry Baryshkov <[email protected]> Date: Mon Sep 15 14:55:12 2025 +0300 Follow the EDID and ELD and allow parsing InfoFrames from the hex-encoded data. Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> utils/edid-decode/edid-decode.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=5881645d25d36142ce8d6d8d8abde3aabbc16bdd diff --git a/utils/edid-decode/edid-decode.cpp b/utils/edid-decode/edid-decode.cpp index e2c86f7fc0ab..1ee9c5e9ce4e 100644 --- a/utils/edid-decode/edid-decode.cpp +++ b/utils/edid-decode/edid-decode.cpp @@ -1668,7 +1668,7 @@ static bool if_add_byte(const char *s) static bool extract_if_hex(const char *s) { for (; *s; s++) { - if (isspace(*s)) + if (isspace(*s) || strchr(ignore_chars, *s)) continue; /* Read one or two hex digits from the log */ @@ -1716,6 +1716,14 @@ static bool extract_if(int fd) if (start) return extract_if_hex(strchr(start, ':') + 1); + unsigned i; + + for (i = 0; i < 32 && (isspace(data[i]) || strchr(ignore_chars, data[i]) || + tolower(data[i]) == 'x' || isxdigit(data[i])); i++); + + if (i == 32) + return extract_if_hex(data); + // Drop the extra '\0' byte since we now assume binary data if_data.pop_back();
