fix possible bug with seeking past 4Gbytes

This commit is contained in:
Josh Coalson 2004-01-18 00:04:11 +00:00
parent f3d6429ab1
commit 4052c875b6
1 changed files with 2 additions and 2 deletions

View File

@ -942,7 +942,7 @@ FLAC__bool seek_to_absolute_sample_(FLAC__SeekableStreamDecoder *decoder, FLAC__
decoder->protected_->state = FLAC__SEEKABLE_STREAM_DECODER_SEEK_ERROR;
return false;
}
pos = (FLAC__int32)upos;
pos = (FLAC__int64)upos;
needs_seek = false;
}
else
@ -1000,7 +1000,7 @@ FLAC__bool seek_to_absolute_sample_(FLAC__SeekableStreamDecoder *decoder, FLAC__
return false;
}
last_pos = pos;
pos = (FLAC__int32)upos;
pos = (FLAC__int64)upos;
pos -= FLAC__stream_decoder_get_input_bytes_unconsumed(decoder->private_->stream_decoder);
needs_seek = false;
/*