tweek seeking for mp3's

git-svn-id: https://svn.musicpd.org/mpd/trunk@442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-03-24 02:09:50 +00:00
parent d294bc3e57
commit 9b38a1e63e
1 changed files with 4 additions and 4 deletions

View File

@ -432,12 +432,12 @@ int mp3Read(mp3DecodeData * data, Buffer * cb, DecoderControl * dc) {
data->frameOffset[data->currentFrame] =
data->currentOffset;
if(data->stream.this_frame!=NULL) {
data->frameOffset[data->currentFrame]+=
data->stream.this_frame-
data->stream.buffer;
data->frameOffset[data->currentFrame]-=
data->stream.bufend-
data->stream.this_frame;
}
else {
data->frameOffset[data->currentFrame]+=
data->frameOffset[data->currentFrame]-=
data->stream.bufend-data->stream.buffer;
}
data->times[data->currentFrame] = data->timer;