#306 Windows >2GB file sizes

1.3.0
closed-fixed
Erik
libFLAC (57)
7
2014-03-21
2007-09-22
Klaus Post
No

Hi!

Files larger than 2GB is broken in the encoder on Windows.

The follwing defines need to be changed:

#define fseeko _fseeki64
#define ftello _ftelli64

Also in "file_tell_callback_", offset needs a 64bit int:

FLAC__uint64 offset;

So that this will work:

offset = ftello(encoder->private_->file);

Discussion

  • Josh Coalson
    Josh Coalson
    2007-09-23

    • priority: 5 --> 7
    • assigned_to: nobody --> jcoalson
    • status: open --> open-accepted
     
  • Erik
    Erik
    2014-03-21

    • status: open-accepted --> closed-fixed
    • assigned_to: Josh Coalson --> Erik
    • Group: --> 1.3.0
     
  • Erik
    Erik
    2014-03-21

    This was fixed before the 1.3.0 release.