summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-12-20 02:38:35 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-12-20 02:38:35 +0000
commit7a0baa3aa5076964ee1bcf9658c5129f5b0a1957 (patch)
tree309a2d017c9e97cccfaa5fd211e183929fe04742 /apps/codecs
parentec380a79d900c2a47250e0b66d53432cd2482e05 (diff)
Fix occasional glitch when switching from stereo to mono tracks due to uninitialized m/s coding flag.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19498 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/libwma/wmadeci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c
index 292794b907..00c9fb7c83 100644
--- a/apps/codecs/libwma/wmadeci.c
+++ b/apps/codecs/libwma/wmadeci.c
@@ -328,8 +328,10 @@ int wma_decode_init(WMADecodeContext* s, asf_waveformatex_t *wfx)
coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
#endif
+ /*clear stereo setting to avoid glitches when switching stereo->mono*/
s->channel_coded[0]=0;
s->channel_coded[1]=0;
+ s->ms_stereo=0;
s->sample_rate = wfx->rate;
s->nb_channels = wfx->channels;