edid: use the correct definition for maximum standard timings

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
This commit is contained in:
Sebastian Wick 2022-09-28 02:44:35 +02:00
parent 40d8018a7e
commit 78b4f0eb68

2
edid.c
View file

@ -726,7 +726,7 @@ parse_standard_timings_descriptor(struct di_edid *edid,
if (!parse_standard_timing(edid, timing_data, &t)) if (!parse_standard_timing(edid, timing_data, &t))
return false; return false;
if (t) { if (t) {
assert(desc->standard_timings_len < EDID_MAX_STANDARD_TIMING_COUNT); assert(desc->standard_timings_len < EDID_MAX_DESCRIPTOR_STANDARD_TIMING_COUNT);
desc->standard_timings[desc->standard_timings_len++] = t; desc->standard_timings[desc->standard_timings_len++] = t;
} }
} }