mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-05-01 06:13:08 +08:00
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:
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user