Commit 760dc261 authored by conrad's avatar conrad

clean up some compile warnings in tools


git-svn-id: http://svn.annodex.net/liboggz/trunk@2051 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent f0b3da08
......@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oggz/oggz.h>
#include "oggz_tools.h"
......@@ -231,6 +232,8 @@ usage (char * progname)
{
printf ("usage: %s filename\n", progname);
printf ("Shift timestamps on all pages such that the stream starts at 0.\n");
return 0;
}
int
......@@ -239,7 +242,6 @@ main (int argc, char ** argv)
char * progname = argv[0];
OGGZ * oggz;
OBData * ord;
long n;
if (argc < 2) {
usage (progname);
......
......@@ -206,7 +206,6 @@ main (int argc, char ** argv)
OGGZ * oggz;
char * infilename = NULL, * outfilename = NULL;
int i;
long n;
progname = argv[0];
......
......@@ -119,7 +119,7 @@ gp_metric (OGGZ * oggz, long serialno, ogg_int64_t granulepos,
}
units = (1000 * granulepos * rates[i].rate_multiplier);
printf ("%ld\t(%ld * %f)\n", units,
printf ("%lld\t(%ld * %f)\n", units,
(long)granulepos, rates[i].rate_multiplier);
return units;
}
......@@ -236,7 +236,7 @@ main (int argc, char ** argv)
oggz_set_read_callback (oggz, -1, read_packet, NULL);
while ((n = oggz_read (oggz, 1024)) > 0);
printf ("Last unit: %ld\n",
printf ("Last unit: %lld\n",
gp_metric (oggz, current_serialno, current_granule, NULL));
oggz_seek (oggz, 10000, SEEK_SET);
......
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