This is an automatic generated email to let you know that the following patch 
were queued:

Subject: edid-decode: fix OVT bugs
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed May 25 11:27:29 2022 +0200

Fix the use of a wrong index (i instead of rate_index), and in the
preparse code the EDID offset calculation was missing a " + i".

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 parse-cta-block.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

---

diff --git a/parse-cta-block.cpp b/parse-cta-block.cpp
index 1e4a0c829eff..bbbec2c6ae1b 100644
--- a/parse-cta-block.cpp
+++ b/parse-cta-block.cpp
@@ -714,13 +714,13 @@ void edid_state::cta_vfdb(const unsigned char *x, 
unsigned n)
                                                         rids[vfd.rid].vact,
                                                         rids[vfd.rid].hratio,
                                                         rids[vfd.rid].vratio,
-                                                        vf_rate_values[i]);
+                                                        
vf_rate_values[rate_index]);
                        char type[16];
                        sprintf(type, "RID %u@%up", rid, 
vf_rate_values[rate_index]);
                        print_timings("    ", &t, type);
-                       if (rid_to_vic(vfd.rid, i))
+                       if (rid_to_vic(vfd.rid, rate_index))
                                fail("%s not allowed since it maps to VIC 
%u.\n",
-                                    rid_to_vic(vfd.rid, i));
+                                    type, rid_to_vic(vfd.rid, rate_index));
                }
        }
 }
@@ -2565,7 +2565,7 @@ void edid_state::preparse_cta_block(const unsigned char 
*x)
                case 0x06:
                        if (!(x[i] & 0x1f) || cta.preparsed_first_vfd.rid)
                                break;
-                       cta.preparsed_first_vfd = cta_parse_vfd(x + 2, (x[i + 
1] & 3) + 1);
+                       cta.preparsed_first_vfd = cta_parse_vfd(x + i + 2, (x[i 
+ 1] & 3) + 1);
                        break;
                case 0x07:
                        if (x[i + 1] == 0x0d)

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to