[xiph-commits] r12241 - trunk/postfish
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Mon Dec 25 14:46:09 PST 2006
Author: xiphmont
Date: 2006-12-25 14:46:08 -0800 (Mon, 25 Dec 2006)
New Revision: 12241
Modified:
trunk/postfish/input.c
Log:
Correct a bug in stram input handling where the stream immediately halts.
Modified: trunk/postfish/input.c
===================================================================
--- trunk/postfish/input.c 2006-12-25 22:01:46 UTC (rev 12240)
+++ trunk/postfish/input.c 2006-12-25 22:46:08 UTC (rev 12241)
@@ -852,7 +852,7 @@
/* perform read/conversion of this file entry */
{
- off_t read_this_loop=fe->end-cursor-fileread_s;
+ off_t read_this_loop=(fe->end<0?input_size:fe->end-cursor-fileread_s);
unsigned char readbuf[input_size*(g->ch*fe->bytes)];
if(read_this_loop>toread_s)read_this_loop=toread_s;
More information about the commits
mailing list