~ubuntu-branches/ubuntu/karmic/liboggz/karmic

« back to all changes in this revision

Viewing changes to src/examples/identity.c

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Waugh
  • Date: 2006-02-07 13:31:07 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060207133107-bxwb7faeao1v7jrr
Tags: 0.9.3-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <oggz/oggz.h>
36
36
 
37
37
#define ID_WRITE_DIRECT
 
38
/* define USE_FLUSH_NEXT */
38
39
 
 
40
#ifdef USE_FLUSH_NEXT
39
41
static int flush_next = 0;
 
42
#endif
40
43
 
41
44
static int
42
45
read_packet (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data)
45
48
  int flush;
46
49
  int ret;
47
50
 
48
 
#if 0
 
51
#ifdef USE_FLUSH_NEXT
49
52
  flush = flush_next;
50
53
  if (op->granulepos == -1) {
51
54
    flush_next = 0;
72
75
{
73
76
  char * infilename, * outfilename;
74
77
  OGGZ * reader, * writer;
 
78
#ifndef ID_WRITE_DIRECT
75
79
  FILE * outfile;
76
80
  unsigned char buf[1024];
 
81
#endif
77
82
  long n;
78
83
 
79
84
  if (argc < 3) {