List Info

Thread: creating flacs over 2GB




creating flacs over 2GB
country flaguser name
United States
2007-09-25 02:20:42
Hello All,

I was struggling with the need of creating flac files over 2GB recently.
Both the command line flac and my util using stream encoder returned FLAC__STREAM_ENCODER_CLIENT_ERROR when reaching that point.

Finally I made a small change in libFLAC/stream_encoder.c in file_tell_callback_ function.
I replaced the ftello call to fgetpos. This seems to work very well under win32.

Based on the description at http://www.gnu.org/software/libc/manual/html_node/Portable-Positioning.html I think this should be also portable solution.

Hope this small change could help other users, too.

Istvan



___________________________
Opel, Renault, Ford vagy Suzuki?
Re: creating flacs over 2GB
country flaguser name
United States
2007-09-25 17:04:48
--- Gyürki István <istvan.gyurkifreemail.hu> wrote:

> Hello All,
> 
> I was struggling with the need of creating flac files
over 2GB
> recently.
> Both the command line flac and my util using stream
encoder returned
> FLAC__STREAM_ENCODER_CLIENT_ERROR when reaching that
point.
> 
> Finally I made a small change in
libFLAC/stream_encoder.c in
> file_tell_callback_ function.
> I replaced the ftello call to fgetpos. This seems to
work very well
> under win32. 
> 
> Based on the description at
>
http://www.gnu.org/software/libc/manu
al/html_node/Portable-Positioning.html
> I think this should be also portable solution.
> 
> Hope this small change could help other users, too.

the 2GB limit should only be a problem on windows with msvc.
 thanks
for the tip, I will look into fgetpos for that case,
hopefully it
will work with msvc6 which is what I compile the releases
with.

Josh



       
____________________________________________________________
________________________
Building a website is a piece of cake. Yahoo! Small Business
gives you all the tools to get online.
http://smal
lbusiness.yahoo.com/webhosting 
_______________________________________________
Flac-dev mailing list
Flac-devxiph.org
http:
//lists.xiph.org/mailman/listinfo/flac-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )