From fcd8a58ddfcf3d9bfaa15971e244e8ecb623b08b Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 14 Oct 2010 04:25:03 +0000 Subject: Patch iseeking example to continue if there's insufficient memory to allocate a verification buffer for excessively large samples. Also correct sample/time calculation to not overflow 64 bit math, again for those excessively long samples git-svn-id: https://svn.xiph.org/trunk/Tremor@17533 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- iseeking_example.c | 60 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/iseeking_example.c b/iseeking_example.c index 533d7bd..c98676f 100644 --- a/iseeking_example.c +++ b/iseeking_example.c @@ -60,20 +60,22 @@ void _verify(OggVorbis_File *ov, exit(1); } bread=ov_read(ov,buffer,4096,&dummy); - for(j=0;j