avformat/mccenc: Fix assert check

Reviewed-by: Jacob Lifshay <programmerjake@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-09-19 18:49:42 +02:00
parent a34a85ed54
commit 0cd78bddc4

View File

@@ -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] = {