Commit 6448f15a authored by Martin Storsjö's avatar Martin Storsjö

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>
parent 5f5b78ac
......@@ -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;
}
......
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