> Kimmo Mustonen: Much code cleanup and Amiga updates
Hummm, any chance of telling me which changes he did?
I'd be very interested. ;)
> More stdin fixes: For some reason, forward fseek()'s would fail when
> used on pipes even though it is okay with redirection from "<". So I
> changed all the forward fseek()'s to use fread(). This should improve
> stdin support for wav/aiff files. If you know the input file is raw
> pcm, you can still use the '-r' option to avoid *all* seeking of any
> kind.
At line 353;
int fskip(FILE *sf,long num_bytes,int dummy)
{
char data[num_bytes];
..this doesn't work (atleast not here), as the char data[..] needs a static
value .. I have no idea how to do this a better way though... :/
Oh, btw, I've been hinted by one of my (LAME port) users that putting f.ex;
extern int __buffsize=100000;
somewhere, f.ex. in main.c would allocate about 100k as a buffer for all
fread/fwrite etc operations .. I tested this, and it gave me about a 5% speed
increase in general.
- CISC
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )