diff options
| author | Thom Johansen <thomj@rockbox.org> | 2005-11-06 19:18:04 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2005-11-06 19:18:04 +0000 |
| commit | c8193b8da503859eeeb4d551fdbe523759421394 (patch) | |
| tree | 937720a001329dd5924a7d00a1d7265b121cf031 /apps/codecs/flac.c | |
| parent | 741012004b996375bba172fc4beb0bff92ce15db (diff) | |
| download | rockbox-c8193b8da503859eeeb4d551fdbe523759421394.zip rockbox-c8193b8da503859eeeb4d551fdbe523759421394.tar.gz rockbox-c8193b8da503859eeeb4d551fdbe523759421394.tar.bz2 rockbox-c8193b8da503859eeeb4d551fdbe523759421394.tar.xz | |
The seek_time member of the codec API needs to be decremented before use as a seeking time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7768 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/flac.c')
| -rw-r--r-- | apps/codecs/flac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index fff301b..b94152d 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c @@ -272,7 +272,7 @@ enum codec_status codec_start(struct codec_api* api) /* Deal with any pending seek requests */ if (ci->seek_time) { - if (flac_seek(&fc,(ci->seek_time/20) * (ci->id3->frequency/50))) { + if (flac_seek(&fc,((ci->seek_time-1)/20)*(ci->id3->frequency/50))) { /* Refill the input buffer */ buf = ci->request_buffer(&bytesleft, MAX_FRAMESIZE); } |