1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/jacosubdec: check strftime return value

Fixes CID1257004
This commit is contained in:
Clément Bœsch 2014-12-07 15:46:17 +01:00
parent ace9161655
commit 6153aa2d1e

View File

@ -46,8 +46,8 @@ static int insert_datetime(AVBPrint *dst, const char *in, const char *arg)
struct tm ltime;
localtime_r(&now, &ltime);
strftime(buf, sizeof(buf), arg, &ltime);
av_bprintf(dst, "%s", buf);
if (strftime(buf, sizeof(buf), arg, &ltime))
av_bprintf(dst, "%s", buf);
return 0;
}