mxfdec: Validate parameters to strftime
authorMartin Storsjö <martin@martin.st>
Sun, 9 Mar 2014 20:44:10 +0000 (22:44 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 10 Mar 2014 09:11:08 +0000 (11:11 +0200)
commit8cafeb8bca5d079041739dbd72ccec0ead138eaf
treef1c913ad0561f30dc2fa2a06c574f1eed2c904a8
parent558b20d729bc296d8e6a69f03cd509ad26a4827d
mxfdec: Validate parameters to strftime

The MSVCRT version of strftime calls the invalid parameter handler
if the struct values in struct tm are invalid. In case no invalid
parameter handler is set for the process, the process is aborted.

This fixes fate failures on MSVC builds since 570af382.

Based on a patch by Hendrik Leppkes.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mxfdec.c