--- Joe Groff <[EMAIL PROTECTED]> wrote:
> > --input-size should only be needed when encoding raw data from
> > stdin, right?  all other cases should be OK since the size is
> > read from WAVE/AIFF metadata.
> >
> 
>  From flac/main.c, it looks as if encode_file() sets infilesize to -1
> 
> (unknown) when reading from stdin regardless of the format:
> 
>       if(0 == strcmp(infilename, "-")) {
>               infilesize = -1;
>               encode_infile = grabbag__file_get_binary_stdin();
>       }
> 
> Perhaps flac__encode_{aif,wav} ignores this value and replaces it
> with 
> information from the file header.

yep, that's what it does.  actually, if you dig into encode.c,
infilesize is only used when encoding raw.

I checked in your patch to the trunk, so --input-size will be
in the next release.

thanks,
Josh



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Flac-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flac-dev

Reply via email to