Use gmtime_r instead of gmtime and localtime_r instead of localtime
authorMartin Storsjö <martin@martin.st>
Fri, 24 Oct 2014 07:46:36 +0000 (10:46 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 25 Oct 2014 21:14:54 +0000 (00:14 +0300)
commit82ee7d0dda0fec8cdb670f4e844bf5c2927ad9de
tree5176e09d9c0cd74ddb5296be54fdb4fabca77c91
parent3f8f1c6ff24ee858eb5b0bf47ef6d4605299a87e
Use gmtime_r instead of gmtime and localtime_r instead of localtime

gmtime isn't thread safe in general. In msvcrt (which lacks gmtime_r),
the buffer used by gmtime is thread specific though.

One call to localtime is left in avconv_opt.c, where thread safety
shouldn't matter (instead of making avconv depend on the libavutil
internal header).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov.c
libavformat/mxfenc.c
libavformat/wtv.c
libavutil/parseutils.c