[FFmpeg-trac] #992(avformat:closed): avoid strptime() dependancy, it seems unavailable on windows

FFmpeg trac at avcodec.org
Thu Sep 6 00:48:50 CEST 2012


#992: avoid strptime() dependancy, it seems unavailable on windows
-------------------------------------+------------------------------------
             Reporter:  MattE        |                    Owner:
                 Type:  enhancement  |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:  fixed
             Keywords:  strptime     |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  1            |
-------------------------------------+------------------------------------
Changes (by saste):

 * analyzed:  0 => 1
 * status:  new => closed
 * resolution:   => fixed
 * reproduced:  0 => 1


Comment:

 Replying to [ticket:992 MattE]:
 > Because strptime isn't available natively for windows one cannot set the
 creation time of a file in ffmpeg (see the HAVE_STRPTIME flag in
 libavformat\utils.c line 4091).
 >
 > I want to request that it be added for windows as well. There's a GPL
 implementation of strptime here http://plibc.sourceforge.net/doxygen
 /strptime_8c-source.html which adds Windows support for strptime. It'd be
 great if that could be added to ffmpeg.

 Should be fixed in:
 {{{
 commit 29e972f67c914d35417bc7368493d2617abdd26e
 Author: Stefano Sabatini <stefasab at gmail.com>
 Date:   Sat Sep 1 13:32:43 2012 +0200

     lavu/parseutils: add av_small_strptime()

     Make internal small_strptime() function public, and use it in place of
     strptime().
     This allows to avoid a dependency on strptime() on systems which do
 not
     support it.

     In particular, fix trac ticket #992.
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/992#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list