[FFmpeg-devel] [misc-parse-date PATCH 4/5] Deprecate parse_date() in favor of av_parse_time().

Alex Converse alex.converse
Wed Jun 23 00:54:58 CEST 2010


2010/6/22 M?ns Rullg?rd <mans at mansr.com>:
> Michael Niedermayer <michaelni at gmx.at> writes:
>
>> On Wed, Jun 23, 2010 at 12:24:00AM +0200, Stefano Sabatini wrote:
>>> On date Tuesday 2010-06-22 20:28:56 +0200, Michael Niedermayer encoded:
>>> > On Sun, Jun 20, 2010 at 06:51:08PM +0200, Stefano Sabatini wrote:
>>> > > The new function is av_ prefixed and has a slightly more
>>> > > convenient/expressive interface.
>>> >
>>>
>>> > why is the timevalue (positive) or error (negative) nit returned normally?
>>>
>>> AVERROR_INVALIDDATA: Cannot parse expression.
>>>
>>
>>> > or other question, in which case do we need to return negative
>>> > times/durations?
>>>
>>> Negative durations don't make sense, but we can have perfectly valid
>>> negative times, for dates which pre-date the UNIX epoch.
>>
>> let me guess, movie of the dinosours?
>
> Many of the best films were made before 1970.
>
>> anyway, what about fixing the origin to predate the big bang, that should
>> avoid the need for negative times
>
> Integer overflow.
>

It's been less than 2^59 seconds since the big bang so we should be
good with uint64_t



More information about the ffmpeg-devel mailing list