[FFmpeg-devel] [PATCH] Make parse_date return INT64_MIN in case of unparsable input

Stefano Sabatini stefano.sabatini-lala
Wed Sep 19 11:27:39 CEST 2007


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.

Regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-parse-date-return-int64min-if-unparsable-input-06.patch
Type: text/x-diff
Size: 5496 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070919/21f21de6/attachment.patch>



More information about the ffmpeg-devel mailing list