From 9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 24 Mar 2004 02:09:50 +0000 Subject: [PATCH] tweek seeking for mp3's git-svn-id: https://svn.musicpd.org/mpd/trunk@442 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mp3_decode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mp3_decode.c b/src/mp3_decode.c index 6fa931fe7..ed108c37b 100644 --- a/src/mp3_decode.c +++ b/src/mp3_decode.c @@ -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;