Merged release 0.15.7 from branch 'v0.15.x'

Conflicts:
	NEWS
	configure.ac
	src/decoder_api.c
This commit is contained in:
Max Kellermann
2009-12-27 20:10:45 +01:00
5 changed files with 12 additions and 6 deletions

View File

@@ -201,10 +201,9 @@ wavpack_decode(struct decoder *decoder, WavpackContext *wpc, bool can_seek,
do {
if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK) {
if (can_seek) {
int where;
unsigned where = decoder_seek_where(decoder) *
audio_format.sample_rate;
where = decoder_seek_where(decoder);
where *= audio_format.sample_rate;
if (WavpackSeekSample(wpc, where)) {
decoder_command_finished(decoder);
} else {