diff options
author | Hans Verkuil <hansverk@cisco.com> | 2017-08-31 13:41:16 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-09-07 12:13:33 -0400 |
commit | d3fc557cd790b2473aa219426fd77eec746f3297 (patch) | |
tree | af5aa7606d29d7ea64eb78d14a7d1a2aa73edfd8 | |
parent | 3f134e35f0953ee13202b7a23948f207393167e3 (diff) |
edid-decode: allow the year to be one year in the future
Prototypes may have a year that is in the future, so give this a bit more
slack.
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
-rw-r--r-- | edid-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edid-decode.c b/edid-decode.c index ea44325..5a5fb5b 100644 --- a/edid-decode.c +++ b/edid-decode.c @@ -2192,7 +2192,7 @@ int main(int argc, char **argv) if (edid[0x10] == 0xff) { has_valid_year = 1; printf("Model year %hd\n", edid[0x11] + 1990); - } else if (edid[0x11] + 90 <= ptm->tm_year) { + } else if (edid[0x11] + 90 <= ptm->tm_year + 1) { has_valid_year = 1; if (edid[0x10]) printf("Made in week %hd of %hd\n", edid[0x10], edid[0x11] + 1990); |