From 35bcdef1441519bb66a77b675013309ef39e9eec Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Wed, 2 Feb 2011 15:12:55 +0000 Subject: 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 --- apps/codecs/aac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/codecs') 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; -- cgit v1.2.3