Commit ca3157f8 authored by conrad's avatar conrad

increase the read block size


git-svn-id: http://svn.annodex.net/liboggz/trunk@1487 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent f5c32496
......@@ -47,6 +47,8 @@
# define PRId64 "I64d"
#endif
#define READ_BLOCKSIZE 1024000
static void
usage (char * progname)
{
......@@ -350,7 +352,7 @@ oi_pass1 (OGGZ * oggz, OI_Info * info)
oggz_set_read_page (oggz, -1, read_page_pass1, info);
oggz_set_read_callback (oggz, -1, read_packet_pass1, info);
while ((n = oggz_read (oggz, 1024)) > 0);
while ((n = oggz_read (oggz, READ_BLOCKSIZE)) > 0);
oggzinfo_apply (oit_calc_average, info);
......@@ -366,7 +368,7 @@ oi_pass2 (OGGZ * oggz, OI_Info * info)
oggz_set_read_page (oggz, -1, read_page_pass2, info);
oggz_set_read_callback (oggz, -1, read_packet_pass2, info);
while ((n = oggz_read (oggz, 1024)) > 0);
while ((n = oggz_read (oggz, READ_BLOCKSIZE)) > 0);
oggzinfo_apply (oit_calc_stddev, info);
......
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