git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mxfdec: Fix the error handling for when strftime fails
[ffmpeg.git]
/
libavformat
/
mxfdec.c
diff --git
a/libavformat/mxfdec.c
b/libavformat/mxfdec.c
index
2b8bd89
..
563f0ed
100644
(file)
--- a/
libavformat/mxfdec.c
+++ b/
libavformat/mxfdec.c
@@
-1736,7
+1736,7
@@
static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
if (!*str)
return AVERROR(ENOMEM);
if (!strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time))
if (!*str)
return AVERROR(ENOMEM);
if (!strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time))
-
str
[0] = '\0';
+
(*str)
[0] = '\0';
return 0;
}
return 0;
}