forked from len0rd/rockbox
Add a safety check in the resume seek code, just in case.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29181 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ee6a74e7e3
commit
11b7a4fb26
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ unsigned int alac_seek_raw(demux_res_t* demux_res, stream_t* stream,
|
|||
}
|
||||
++chunk;
|
||||
}
|
||||
new_pos = demux_res->chunk_offset[chunk-1];
|
||||
new_pos = demux_res->chunk_offset[chunk > 0 ? chunk - 1 : 0];
|
||||
|
||||
/* Get the first sample of the chunk. */
|
||||
i = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue