You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
Merge commit '9dcf2397219ca796f0fafce2a703770d6fd09920'
* commit '9dcf2397219ca796f0fafce2a703770d6fd09920': lavf: Check the return value of strftime Conflicts: libavformat/wtvdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -389,7 +389,8 @@ static int filetime_to_iso8601(char *buf, int buf_size, int64_t value)
|
||||
struct tm *tm = gmtime(&t);
|
||||
if (!tm)
|
||||
return -1;
|
||||
strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm);
|
||||
if (!strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -403,7 +404,8 @@ static int crazytime_to_iso8601(char *buf, int buf_size, int64_t value)
|
||||
struct tm *tm = gmtime(&t);
|
||||
if (!tm)
|
||||
return -1;
|
||||
strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm);
|
||||
if (!strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -417,7 +419,8 @@ static int oledate_to_iso8601(char *buf, int buf_size, int64_t value)
|
||||
struct tm *tm= gmtime(&t);
|
||||
if (!tm)
|
||||
return -1;
|
||||
strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm);
|
||||
if (!strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user