diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-06-24 08:51:22 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-06-24 08:51:22 +0000 |
commit | 4b0e09c1ac2127151b100723ebe6233ee7757e6a (patch) | |
tree | 138d7d30cc48a9879fa4a22c0968ab5a6b9508e2 /apps/codecs/cook.c | |
parent | d0084ffd7a4a8f14aeb2c702de5794e36ffff6e8 (diff) | |
download | rockbox-4b0e09c1ac2127151b100723ebe6233ee7757e6a.tar.gz rockbox-4b0e09c1ac2127151b100723ebe6233ee7757e6a.zip |
Submit FS#12164 by Sean Bartell with minor changes by myself. Fixes possible decoding corruption of RealAudio files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30060 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/cook.c')
-rw-r--r-- | apps/codecs/cook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/cook.c b/apps/codecs/cook.c index 5801ee63af..4a47e74f60 100644 --- a/apps/codecs/cook.c +++ b/apps/codecs/cook.c | |||
@@ -88,7 +88,7 @@ enum codec_status codec_run(void) | |||
88 | fs = rmctx.audio_framesize; | 88 | fs = rmctx.audio_framesize; |
89 | sps= rmctx.block_align; | 89 | sps= rmctx.block_align; |
90 | h = rmctx.sub_packet_h; | 90 | h = rmctx.sub_packet_h; |
91 | scrambling_unit_size = h*fs; | 91 | scrambling_unit_size = h * (fs + PACKET_HEADER_SIZE); |
92 | 92 | ||
93 | res =cook_decode_init(&rmctx, &q); | 93 | res =cook_decode_init(&rmctx, &q); |
94 | if(res < 0) { | 94 | if(res < 0) { |