avcodec/jacosubdec: check strftime return value

Fixes CID1257004
pull/101/head
Clément Bœsch 10 years ago
parent ace9161655
commit 6153aa2d1e
  1. 4
      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, &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;
}

Loading…
Cancel
Save