Browse Source

avcodec/jacosubdec: check strftime return value

Fixes CID1257004
tags/n2.6
Clément Bœsch 11 years ago
parent
commit
6153aa2d1e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/jacosubdec.c

+ 2
- 2
libavcodec/jacosubdec.c 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;
}



Loading…
Cancel
Save