aboutsummaryrefslogtreecommitdiffstats
path: root/parse-vtb-ext-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-10 20:55:46 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-10 20:55:46 +0100
commitdd4085e3e6b594250694ce91e3601166e745a798 (patch)
treeb901a0d929581815faad35a0fed29ae934f3ad0d /parse-vtb-ext-block.cpp
parent9f6bb734049bea68d83364da5c267b758351ec74 (diff)
edid-decode: small improvements
data_block for a DTD has a DTD index that was off by 1. Some small textual improvements as well. And the VTB extension block also had DTDs, so that had to be preparsed as well to get the correct total of DTDs. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-vtb-ext-block.cpp')
-rw-r--r--parse-vtb-ext-block.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse-vtb-ext-block.cpp b/parse-vtb-ext-block.cpp
index cb68529..afdb1c0 100644
--- a/parse-vtb-ext-block.cpp
+++ b/parse-vtb-ext-block.cpp
@@ -7,6 +7,11 @@
#include "edid-decode.h"
+void edid_state::preparse_vtb_ext_block(const unsigned char *x)
+{
+ preparse_total_dtds += x[2];
+}
+
void edid_state::parse_vtb_ext_block(const unsigned char *x)
{
printf("%s Version %u\n", block.c_str(), x[1]);

Privacy Policy