diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-01-31 15:18:26 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-01-31 15:18:26 +0000 |
| commit | ad6c3bc8c5251106a8a8e6ed6d6d3b42f0be0f6d (patch) | |
| tree | c1a6ae4e203482a897415a0b9bed22370b0bb7a1 /apps/codecs | |
| parent | dedde474248d1e75396b9e90e141284901e588f1 (diff) | |
| download | rockbox-ad6c3bc8c5251106a8a8e6ed6d6d3b42f0be0f6d.zip rockbox-ad6c3bc8c5251106a8a8e6ed6d6d3b42f0be0f6d.tar.gz rockbox-ad6c3bc8c5251106a8a8e6ed6d6d3b42f0be0f6d.tar.bz2 rockbox-ad6c3bc8c5251106a8a8e6ed6d6d3b42f0be0f6d.tar.xz | |
Fix resume for m4a files. Solves FS#9306.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29175 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
| -rw-r--r-- | apps/codecs/libm4a/m4a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libm4a/m4a.c b/apps/codecs/libm4a/m4a.c index 42295e7..62b15c0 100644 --- a/apps/codecs/libm4a/m4a.c +++ b/apps/codecs/libm4a/m4a.c @@ -368,7 +368,7 @@ unsigned int alac_seek_raw(demux_res_t* demux_res, stream_t* stream, /* Locate the chunk containing file_loc. */ for (i = 0; i < demux_res->num_chunk_offsets && - file_loc < demux_res->chunk_offset[i]; i++) + file_loc > demux_res->chunk_offset[i]; i++) { } @@ -378,7 +378,7 @@ unsigned int alac_seek_raw(demux_res_t* demux_res, stream_t* stream, /* Get the first sample of the chunk. */ for (i = 1; i < demux_res->num_sample_to_chunks && - chunk < demux_res->sample_to_chunk[i - 1].first_chunk; i++) + chunk > demux_res->sample_to_chunk[i - 1].first_chunk; i++) { chunk_sample += demux_res->sample_to_chunk[i - 1].num_samples * (demux_res->sample_to_chunk[i].first_chunk - |