[xiph-commits] r3560 - liboggz/trunk/src/tools/oggz-chop

conrad at svn.annodex.net conrad at svn.annodex.net
Mon Apr 21 00:12:07 PDT 2008


Author: conrad
Date: 2008-04-21 00:12:06 -0700 (Mon, 21 Apr 2008)
New Revision: 3560

Modified:
   liboggz/trunk/src/tools/oggz-chop/cmd.c
Log:
parse start and end timestamps in arguments of commandline oggz-chop


Modified: liboggz/trunk/src/tools/oggz-chop/cmd.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/cmd.c	2008-04-18 09:23:29 UTC (rev 3559)
+++ liboggz/trunk/src/tools/oggz-chop/cmd.c	2008-04-21 07:12:06 UTC (rev 3560)
@@ -7,6 +7,7 @@
 #include <getopt.h>
 
 #include "oggz-chop.h"
+#include "timespec.h"
 
 static char * progname;
 
@@ -73,10 +74,10 @@
 
     switch (i) {
     case 's': /* start */
-      state->start = atof (optarg);
+      state->start = parse_timespec (optarg);
       break;
     case 'e': /* end */
-      state->end = atof (optarg);
+      state->end = parse_timespec (optarg);
       break;
     case 'h': /* help */
       show_help = 1;



More information about the commits mailing list