mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/jacosubdec: check strftime return value
Fixes CID1257004
This commit is contained in:
parent
ace9161655
commit
6153aa2d1e
@ -46,8 +46,8 @@ static int insert_datetime(AVBPrint *dst, const char *in, const char *arg)
|
|||||||
struct tm ltime;
|
struct tm ltime;
|
||||||
|
|
||||||
localtime_r(&now, <ime);
|
localtime_r(&now, <ime);
|
||||||
strftime(buf, sizeof(buf), arg, <ime);
|
if (strftime(buf, sizeof(buf), arg, <ime))
|
||||||
av_bprintf(dst, "%s", buf);
|
av_bprintf(dst, "%s", buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user