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

Måns Rullgård mans
Wed Jun 23 00:48:54 CEST 2010


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.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list