Commit 9bb7e2bd authored by Martin Storsjö's avatar Martin Storsjö Committed by Michael Niedermayer

mxfdec: Fix the error handling for when strftime fails

The str variable is a char ** here.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
(cherry picked from commit 6448f15a)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 90fa2460
...@@ -1976,7 +1976,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str) ...@@ -1976,7 +1976,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
if (!*str) if (!*str)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
if (!strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time)) if (!strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time))
str[0] = '\0'; (*str)[0] = '\0';
return 0; return 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