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/alac.c | |
parent | 741012004b996375bba172fc4beb0bff92ce15db (diff) |
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/alac.c')
-rw-r--r-- | apps/codecs/alac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c index dcad760f90..1ecaab6b85 100644 --- a/apps/codecs/alac.c +++ b/apps/codecs/alac.c @@ -103,7 +103,7 @@ enum codec_status codec_start(struct codec_api* api) /* Deal with any pending seek requests */ if (ci->seek_time) { if (alac_seek(&demux_res,&input_stream, - (ci->seek_time/10) * (ci->id3->frequency/100), + ((ci->seek_time-1)/10) * (ci->id3->frequency/100), &samplesdone, &i)) { elapsedtime=(samplesdone*10)/(ci->id3->frequency/100); ci->set_elapsed(elapsedtime); |