forked from len0rd/rockbox
Fix bug where a mono file using noise coding would be corrupted if it was played immediately after a stereo files using noise coding due to incorrect initialization of the decoder state. Thanks to Tom Ross for pointing out that initialization was incomplete on these files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19494 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0df38260e8
commit
0301ed5594
1 changed files with 5 additions and 2 deletions
|
@ -328,6 +328,9 @@ int wma_decode_init(WMADecodeContext* s, asf_waveformatex_t *wfx)
|
||||||
coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
|
coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
s->channel_coded[0]=0;
|
||||||
|
s->channel_coded[1]=0;
|
||||||
|
|
||||||
s->sample_rate = wfx->rate;
|
s->sample_rate = wfx->rate;
|
||||||
s->nb_channels = wfx->channels;
|
s->nb_channels = wfx->channels;
|
||||||
s->bit_rate = wfx->bitrate;
|
s->bit_rate = wfx->bitrate;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue