Commit f0390638 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/matroskadec: Check the return code from strftime()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a9564e85
......@@ -1509,7 +1509,7 @@ static void matroska_metadata_creation_time(AVDictionary **metadata, int64_t dat
time_t creation_time = date_utc / 1000000000 + 978307200;
struct tm *ptm = gmtime(&creation_time);
if (!ptm) return;
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", ptm);
if (strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", ptm))
av_dict_set(metadata, "creation_time", buffer, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment