OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace9161
)
avcodec/jacosubdec: check strftime return value
author
Clément Bœsch
<u@pkh.me>
Sun, 7 Dec 2014 14:46:17 +0000
(15:46 +0100)
committer
Clément Bœsch
<u@pkh.me>
Sun, 7 Dec 2014 14:46:17 +0000
(15:46 +0100)
Fixes CID1257004
libavcodec/jacosubdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/jacosubdec.c
b/libavcodec/jacosubdec.c
index
2f94956
..
0c97eb8
100644
(file)
--- a/
libavcodec/jacosubdec.c
+++ b/
libavcodec/jacosubdec.c
@@
-46,8
+46,8
@@
static int insert_datetime(AVBPrint *dst, const char *in, const char *arg)
struct tm ltime;
localtime_r(&now, <ime);
- strftime(buf, sizeof(buf), arg, <ime);
- av_bprintf(dst, "%s", buf);
+ if (strftime(buf, sizeof(buf), arg, <ime))
+
av_bprintf(dst, "%s", buf);
return 0;
}