aboutsummaryrefslogtreecommitdiffstats
path: root/parse-base-block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parse-base-block.cpp')
-rw-r--r--parse-base-block.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/parse-base-block.cpp b/parse-base-block.cpp
index a2c12c5..5d6d77d 100644
--- a/parse-base-block.cpp
+++ b/parse-base-block.cpp
@@ -1049,8 +1049,10 @@ void edid_state::detailed_timings(const char *prefix, const unsigned char *x,
if (block_nr == 0 && base.dtd_cnt == 1) {
te.type = "DTD 1";
base.preferred_timing = te;
- cta.preferred_timings.push_back(te);
- cta.native_timings.push_back(te);
+ if (has_cta) {
+ cta.preferred_timings.push_back(te);
+ cta.native_timings.push_back(te);
+ }
}
if (base_or_cta)
cta.vec_dtds.push_back(te);

Privacy Policy