decoder/flac: calculate bit rate in flac_common_write()
Removed the "bit_rate" attribute from the flac_data struct. Pass the number of bytes since the last call to flac_common_write(), and let it calculate the bit rate.
This commit is contained in:
@@ -161,7 +161,7 @@ oggflac_write_cb(G_GNUC_UNUSED const OggFLAC__SeekableStreamDecoder *decoder,
|
||||
time_change = ((float)samples) / frame->header.sample_rate;
|
||||
data->time += time_change;
|
||||
|
||||
return flac_common_write(data, frame, buf);
|
||||
return flac_common_write(data, frame, buf, 0);
|
||||
}
|
||||
|
||||
/* used by TagDup */
|
||||
|
Reference in New Issue
Block a user