Commit b3a39911 authored by Stan Seibert's avatar Stan Seibert

Now the cutpoint docs and implementation match better.

svn path=/trunk/vorbis-tools/; revision=5273
parent 1172b920
......@@ -11,12 +11,13 @@ vcut \- cuts Ogg Vorbis files
.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
......
......@@ -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_files(vcut_state *s, FILE *in, FILE *out1, FILE *out2)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment