previous commit used the byte offset; this one actually does use the sample number for the granulepos

This commit is contained in:
Josh Coalson
2002-02-06 07:37:42 +00:00
parent e15dbfcee7
commit 4e685b9b90

View File

@@ -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;