Fixes two encoder bugs causing glitches in stereo->mono switches
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 7 Oct 2011 18:59:53 +0000 (14:59 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 7 Oct 2011 18:59:53 +0000 (14:59 -0400)
commitd5c9263724287664bf8631ecaa89a7ae23cc3f6d
tree6ea45505aff8e6994cb9330f9005d092fb17ecf5
parentb5972388d7c9b0d5f5a780da23ba00dce6a2628d
Fixes two encoder bugs causing glitches in stereo->mono switches

1) averaging the output of the left and right resampling states when
   switching to mono
2) averaging the the delay buffers from left and right when switching
silk/enc_API.c