mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
mxfdec: Fix the error handling for when strftime fails
The str variable is a char ** here.
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 6448f15af0
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
998173ed94
commit
28e17ba220
@ -2041,7 +2041,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user