diff options
Diffstat (limited to 'lib/rbcodec/codecs/raac.c')
-rw-r--r-- | lib/rbcodec/codecs/raac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/raac.c b/lib/rbcodec/codecs/raac.c index e77d432680..6856afc52e 100644 --- a/lib/rbcodec/codecs/raac.c +++ b/lib/rbcodec/codecs/raac.c | |||
@@ -109,7 +109,8 @@ enum codec_status codec_run(void) | |||
109 | if (resume_offset) { | 109 | if (resume_offset) { |
110 | resume_offset -= MIN(resume_offset, rmctx.data_offset + DATA_HEADER_SIZE); | 110 | resume_offset -= MIN(resume_offset, rmctx.data_offset + DATA_HEADER_SIZE); |
111 | /* put number of subpackets to skip in resume_offset */ | 111 | /* put number of subpackets to skip in resume_offset */ |
112 | resume_offset /= (rmctx.block_align + PACKET_HEADER_SIZE); | 112 | resume_offset /= (rmctx.block_align + PACKET_HEADER_SIZE + |
113 | ((rmctx.flags & RM_PKT_V1) ? 1 : 0)); | ||
113 | param = (int)resume_offset * ((rmctx.block_align * 8 * 1000)/rmctx.bit_rate); | 114 | param = (int)resume_offset * ((rmctx.block_align * 8 * 1000)/rmctx.bit_rate); |
114 | } | 115 | } |
115 | 116 | ||