[FFmpeg-devel] [PATCH] Make parse_date return INT64_MIN in case of unparsable input
Benoit Fouet
benoit.fouet
Wed Sep 19 11:29:42 CEST 2007
Stefano Sabatini wrote:
> On date Wednesday 2007-09-19 10:41:49 +0200, Benoit Fouet encoded:
>
>> Hi,
>>
>> Stefano Sabatini wrote:
>>
>>> Index: ffmpeg.c
>>> ===================================================================
>>> --- ffmpeg.c (revision 10526)
>>> +++ ffmpeg.c (working copy)
>>> static void opt_rec_timestamp(const char *arg)
>>> {
>>> - rec_timestamp = parse_date(arg, 0) / 1000000;
>>> + int64_t rec_timestamp_us;
>>> + parse_time_or_die(&rec_timestamp_us, arg, 0);
>>> + rec_timestamp = rec_timestamp_us / 1000000;
>>>
>>>
>> one last thing: why not use rec_timestamp directly ?
>>
>
> Yes, you're right again.
>
>
seems ok...
Michael ?
--
Ben
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-devel
mailing list