projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abaa41b
)
avformat/mlvdec: Check the return code from strftime()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 26 Oct 2014 14:51:37 +0000
(15:51 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 26 Oct 2014 16:07:29 +0000
(17:07 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mlvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/mlvdec.c
b/libavformat/mlvdec.c
index
1855ea4
..
17bdb17
100644
(file)
--- a/
libavformat/mlvdec.c
+++ b/
libavformat/mlvdec.c
@@
-204,8
+204,8
@@
static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int f
time.tm_yday = avio_rl16(pb);
time.tm_isdst = avio_rl16(pb);
avio_skip(pb, 2);
- strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S", &time);
- av_dict_set(&avctx->metadata, "time", str, 0);
+ if (strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S", &time))
+
av_dict_set(&avctx->metadata, "time", str, 0);
size -= 20;
} else if (type == MKTAG('E','X','P','O') && size >= 16) {
av_dict_set(&avctx->metadata, "isoMode", avio_rl32(pb) ? "auto" : "manual", 0);