X-Git-Url: https://git.piment-noir.org/?p=deb_ffmpeg.git;a=blobdiff_plain;f=ffmpeg%2Flibavformat%2Fmlvdec.c;h=17bdb17e72e6b48882e3a68f1bed0b7eee55732d;hp=1855ea46ce18175cfa5d36c9e509ad6cb9e2eef8;hb=f6fa7814ccfe3e76514b36cf04f5cd3cb657c8cf;hpb=2ba45a602cbfa7b771effba9b11bb4245c21bc00 diff --git a/ffmpeg/libavformat/mlvdec.c b/ffmpeg/libavformat/mlvdec.c index 1855ea4..17bdb17 100644 --- a/ffmpeg/libavformat/mlvdec.c +++ b/ffmpeg/libavformat/mlvdec.c @@ -204,8 +204,8 @@ static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int f time.tm_yday = avio_rl16(pb); time.tm_isdst = avio_rl16(pb); avio_skip(pb, 2); - strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S", &time); - av_dict_set(&avctx->metadata, "time", str, 0); + if (strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S", &time)) + av_dict_set(&avctx->metadata, "time", str, 0); size -= 20; } else if (type == MKTAG('E','X','P','O') && size >= 16) { av_dict_set(&avctx->metadata, "isoMode", avio_rl32(pb) ? "auto" : "manual", 0);