[FFmpeg-devel] [PATCH 01/12] avutil/parseutils: use microsecond precision when parsing "now" in av_parse_time()

Marton Balint cus at passwd.hu
Sun Feb 7 04:27:36 CET 2016


On Sun, 7 Feb 2016, Michael Niedermayer wrote:

> On Sat, Feb 06, 2016 at 08:13:12PM +0100, Marton Balint wrote:
>> Use av_gettime() instead of time(0) for querying current time.
>>
>> Signed-off-by: Marton Balint <cus at passwd.hu>
>> ---
>>  libavutil/parseutils.c    | 12 +++++++-----
>>  tests/ref/fate/parseutils |  4 ++--
>>  2 files changed, 9 insertions(+), 7 deletions(-)
>
> after this (whole) patchset
> ./ffmpeg  -i lena.pnm -timestamp "2016-01-01 01:01:01" test.mp4
> exiftool test.mp4
> results in
> Create Date                     : 1904:01:01 00:00:00
> Modify Date                     : 1904:01:01 00:00:00
>

Hmm, apparently I missed the fact iso 8601 time specs can have timezone 
specifiers as well, even if they were not parsed but silently ignored by 
the existing function.

I will rework the second patch to fix that.

Thanks,
Marton


More information about the ffmpeg-devel mailing list