diff --git a/libavformat/mov.c b/libavformat/mov.c index 9fdeef057e..192e460038 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1521,6 +1521,10 @@ static void mov_metadata_creation_time(MOVContext *c, AVIOContext *pb, AVDiction if (version == 1) { time = avio_rb64(pb); avio_rb64(pb); + if (time < 0) { + av_log(c->fc, AV_LOG_DEBUG, "creation_time is negative\n"); + return; + } } else { time = avio_rb32(pb); avio_rb32(pb); /* modification time */