commit | e949b720495fa9d11fdb189ffe38a7e115c1c426 | [log] [tgz] |
---|---|---|
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Fri May 07 07:48:07 2010 -0400 |
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Fri May 07 21:20:22 2010 -0400 |
tree | ee43e0cabf56c52de8412022c36ab09b4555c52c | |
parent | ce4dd367c2b9ffc2b079cde28dd724b94776376d [diff] [blame] |
Fixed pitchEnd wrt to variable frame size. It should (sort of) all work now
diff --git a/libcelt/modes.c b/libcelt/modes.c index 46b027a..69165a1 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c
@@ -343,7 +343,7 @@ if (mode->eBands==NULL) goto failure; - mode->pitchEnd = 4000*(celt_int32)frame_size/Fs; + mode->pitchEnd = 4000*(celt_int32)mode->shortMdctSize/Fs; /* Overlap must be divisible by 4 */ if (mode->nbShortMdcts > 1)