mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
previous commit used the byte offset; this one actually does use the sample number for the granulepos
This commit is contained in:
@@ -1018,7 +1018,7 @@ FLAC__StreamEncoderWriteStatus write_callback(const FLAC__StreamEncoder *encoder
|
||||
|
||||
memset(&op, 0, sizeof(op));
|
||||
op.packet = (unsigned char *)buffer;
|
||||
op.granulepos = encoder_wrapper->bytes_written - 1;
|
||||
op.granulepos = encoder_wrapper->samples_written - 1;
|
||||
op.packetno = encoder_wrapper->current_frame;
|
||||
op.bytes = bytes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user