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

Benoit Fouet benoit.fouet
Wed Sep 19 10:41:49 CEST 2007


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 ?

-- 
Ben
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list