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/atrac3_rm.c | |
parent | d0084ffd7a4a8f14aeb2c702de5794e36ffff6e8 (diff) |
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/atrac3_rm.c')
-rw-r--r-- | apps/codecs/atrac3_rm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/atrac3_rm.c b/apps/codecs/atrac3_rm.c index b666dd4513..997507425e 100644 --- a/apps/codecs/atrac3_rm.c +++ b/apps/codecs/atrac3_rm.c @@ -89,7 +89,7 @@ enum codec_status codec_run(void) fs = rmctx.audio_framesize; sps= rmctx.block_align; h = rmctx.sub_packet_h; - scrambling_unit_size = h*fs; + scrambling_unit_size = h * (fs + PACKET_HEADER_SIZE); res = atrac3_decode_init(&q, ci->id3); if(res < 0) { |