summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 15:12:55 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 15:12:55 +0000
commit35bcdef1441519bb66a77b675013309ef39e9eec (patch)
tree62a3ebcfecb0a4a582d5bd1998e29be066e090e0 /apps/codecs
parent0f4dfc4e9d4c2cbae69442e415639476c73478b2 (diff)
Find a more consistent and resilient way to handle SBR upsampled files. The detection is only done in one place (the metadata parser) and takes into account that the m4a header might already report corrected frame/sample sizes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29188 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/aac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c
index 37e525e61a..0b27eed472 100644
--- a/apps/codecs/aac.c
+++ b/apps/codecs/aac.c
@@ -145,8 +145,8 @@ next_track:
}
#ifdef SBR_DEC
- /* The file uses SBR. */
- if (decoder->forceUpSampling) {
+ /* Check for need of special handling for seek/resume and elapsed time. */
+ if (ci->id3->needs_upsampling_correction) {
sbr_fac = 2;
} else {
sbr_fac = 1;