diff --git a/libavformat/mccenc.c b/libavformat/mccenc.c index f978c420a3..02541caeb3 100644 --- a/libavformat/mccenc.c +++ b/libavformat/mccenc.c @@ -208,7 +208,7 @@ static int mcc_write_header(AVFormatContext *avf) "December", }; // assert that values are sane so we don't index out of bounds - av_assert0(tm.tm_mon >= 0 && tm.tm_mon <= FF_ARRAY_ELEMS(months)); + av_assert0(tm.tm_mon >= 0 && tm.tm_mon < FF_ARRAY_ELEMS(months)); const char *month = months[tm.tm_mon]; static const char *const weekdays[7] = {