[xiph-cvs] cvs commit: vorbis-tools/vcut vcut.1 vcut.c

Stan Seibert volsung at xiph.org
Mon Sep 1 17:19:27 PDT 2003



volsung     03/09/01 20:19:27

  Modified:    vcut     vcut.1 vcut.c
  Log:
  Now the cutpoint docs and implementation match better.

Revision  Changes    Path
1.3       +3 -2      vorbis-tools/vcut/vcut.1

Index: vcut.1
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/vcut/vcut.1,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vcut.1	3 Jul 2002 03:18:31 -0000	1.2
+++ vcut.1	2 Sep 2003 00:19:27 -0000	1.3
@@ -11,12 +11,13 @@
 .I infile.ogg
 .I outfile1.ogg
 .I outfile2.ogg
-.I cutpoint
+.I [ cutpoint | +cutpoint]
 
 .SH DESCRIPTION
 .B vcut
 reads an Ogg Vorbis audio file and splits it at the given cutpoint, which is a
-sample number.
+sample number.  If the cutpoint is prefixed with '+', the cutpoint is an
+integer number of seconds.
 
 .SH AUTHORS
 

<p><p>1.8       +4 -4      vorbis-tools/vcut/vcut.c

Index: vcut.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/vcut/vcut.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- vcut.c	12 Nov 2002 12:45:21 -0000	1.7
+++ vcut.c	2 Sep 2003 00:19:27 -0000	1.8
@@ -7,7 +7,7 @@
  * Simple application to cut an ogg at a specified frame, and produce two
  * output files.
  *
- * last modified: $Id: vcut.c,v 1.7 2002/11/12 12:45:21 msmith Exp $
+ * last modified: $Id: vcut.c,v 1.8 2003/09/02 00:19:27 volsung Exp $
  */
 
 #include <stdio.h>
@@ -27,8 +27,8 @@
 #define FORMAT_INT64	  "%I64d"
 #define FORMAT_INT64_TIME "+%I64d"
 #else
-#define FORMAT_INT64	  "%Ld"
-#define FORMAT_INT64_TIME "+%Ld"
+#define FORMAT_INT64	  "%lld"
+#define FORMAT_INT64_TIME "+%lld"
 #endif
 
 static vcut_packet *save_packet(ogg_packet *packet)
@@ -655,7 +655,7 @@
 void vcut_set_cutpoint(vcut_state *s, ogg_int64_t cutpoint, int time)
 {
         s->cutpoint = cutpoint;
-	s->time = 1;
+	s->time = time;
 }
 
 void vcut_time_to_samples(ogg_int64_t *time, ogg_int64_t *samples, FILE *in)

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list