1
0
Fork 0
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:
Magnus Holmgren 2011-02-01 20:17:42 +00:00
parent ee6a74e7e3
commit 11b7a4fb26

View file

@ -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;