mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 09:02:38 -05:00
We seeked one chunk too far when resuming m4a files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29180 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4888d41b09
commit
ee6a74e7e3
1 changed files with 2 additions and 1 deletions
|
|
@ -356,10 +356,11 @@ unsigned int alac_seek_raw(demux_res_t* demux_res, stream_t* stream,
|
||||||
chunk = 0;
|
chunk = 0;
|
||||||
while (chunk < demux_res->num_chunk_offsets)
|
while (chunk < demux_res->num_chunk_offsets)
|
||||||
{
|
{
|
||||||
if (file_loc < demux_res->chunk_offset[chunk++])
|
if (file_loc < demux_res->chunk_offset[chunk])
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
++chunk;
|
||||||
}
|
}
|
||||||
new_pos = demux_res->chunk_offset[chunk-1];
|
new_pos = demux_res->chunk_offset[chunk-1];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue