diff options
author | Martin Storsjö <martin@martin.st> | 2015-03-08 00:19:45 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-03-08 18:40:43 +0200 |
commit | 6448f15af02f2c3cf0df8cb8237957e426041f2d (patch) | |
tree | 10e82b93e55ccf461edf8a694eb2002a1358e587 /libavformat/mxfdec.c | |
parent | 5f5b78aca35d07c771f5c4c73a984be9fe04a0b8 (diff) | |
download | ffmpeg-6448f15af02f2c3cf0df8cb8237957e426041f2d.tar.gz |
mxfdec: Fix the error handling for when strftime fails
The str variable is a char ** here.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 2b8bd8978a..563f0ed34f 100644 --- 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)) - str[0] = '\0'; + (*str)[0] = '\0'; return 0; } |