diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-21 00:12:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-21 00:26:20 +0200 |
commit | 578d9cf7ccd3a98b11dd70199da4f3e6f934e33e (patch) | |
tree | 2842a0260a6c86eee619034ec8d0c097646e937a /libavformat/mxfdec.c | |
parent | 63090842df76bcbc2d276feb94c1713b9f7a2a28 (diff) | |
download | ffmpeg-578d9cf7ccd3a98b11dd70199da4f3e6f934e33e.tar.gz |
mxf_timestamp_to_str: dont leave uninitilaized fields in time.
Fixes CID1005318
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 666e9c1af2..286a884cc7 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1660,7 +1660,7 @@ static int mxf_uid_to_str(UID uid, char **str) static int mxf_timestamp_to_str(uint64_t timestamp, char **str) { - struct tm time; + struct tm time = {0}; time.tm_year = (timestamp >> 48) - 1900; time.tm_mon = (timestamp >> 40 & 0xFF) - 1; time.tm_mday = (timestamp >> 32 & 0xFF); |