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: don't continue if bad format
Author:  Hans Verkuil <[email protected]>
Date:    Tue Jul 14 10:41:39 2026 +0200

When parsing from files, don't continue if a bad format is
detected.

Also improve the HDCP hexdump a bit.

Signed-off-by: Hans Verkuil <[email protected]>

 utils/edid-decode/edid-decode.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=1dce4586fc429f5372905605fd7c497f4044b07e
diff --git a/utils/edid-decode/edid-decode.cpp 
b/utils/edid-decode/edid-decode.cpp
index 78de5e685b07..da686fb08e22 100644
--- a/utils/edid-decode/edid-decode.cpp
+++ b/utils/edid-decode/edid-decode.cpp
@@ -1861,6 +1861,7 @@ static int data_from_file(parse_data &pdata, const char 
*from_file)
                        fprintf(stderr, "odd number of hexadecimal digits.\n");
                else
                        fprintf(stderr, "unknown format.\n");
+               pdata.buf_size = 0;
                return -1;
        }
        close(fd);
@@ -2101,10 +2102,9 @@ int edid_state::parse_hdcp_pdata(parse_data &pdata)
                hex_block("", pdata.buf + 128, 128, false);
                printf("\n");
                // KSV FIFO
-               for (unsigned i = 0; i < (pdata.buf[0x41] & 0x7f); i++) {
+               for (unsigned i = 0; i < (pdata.buf[0x41] & 0x7f); i++)
                        hex_block("", pdata.buf + 256 + i * 5, 5, false);
-                       printf("\n");
-               }
+               printf("\n");
                // Secondary HDCP data if present
                if (!memchk(pdata.buf + 256 + 128 * 5, 256)) {
                        hex_block("", pdata.buf + 256 + 128 * 5, 128, false);
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to