rockbox/lib/rbcodec
Andrew Ryabinin b770f63934 flac: fix seeking.
As comment in code states:
"It is possible for our seek to land in the middle of audio
data that looks exactly like a frame header from a future
version of an encoder.  When that happens, frame_sync() will
return false. But there is a remote possibility that it is
properly synced at such a "future-codec frame", so to make sure,
we wait to see several "unparseable" errors in a row before
bailing out."

Currently we wait for 10 "unparseable" errors. libFLAC waits for 20.
But I've got a valid flac+cue, wherein switching to certain track
gave me 24 "unparsaeable" errors. Therefore I increased
unparseable_count to 30.

Change-Id: I4e97a5385c729adf3d5075d41ea312622c69e548
Reviewed-on: http://gerrit.rockbox.org/658
Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
Reviewed-by: Boris Gjenero <boris.gjenero@gmail.com>
Tested-by: Andrew Ryabinin <ryabinin.a.a@gmail.com>
Reviewed-by: Andrew Ryabinin <ryabinin.a.a@gmail.com>
2013-11-18 07:45:59 +01:00
..
codecs flac: fix seeking. 2013-11-18 07:45:59 +01:00
dsp Fix FS#12889 : Audible pop right after setting Repeat/Shuffle 2013-08-16 09:28:36 -04:00
metadata Fix id3v2 album art if more than one image is present. 2013-06-15 21:04:13 +02:00
test Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
platform.h Missed removing a couple unwanted includes in previous commit. 2013-05-27 03:40:02 -04:00
rbcodec.make Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
rbcodecconfig-example.h Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
rbcodecplatform-unix.h rbcodec: abstract tdspeed buffer allocation 2012-05-07 10:29:07 +02:00
SOURCES Rename all the "lin_resample..." stuff to simply "resample_...". 2013-05-07 00:35:46 -04:00