summaryrefslogtreecommitdiff
path: root/apps/codecs/librm/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/librm/rm.c')
-rw-r--r--apps/codecs/librm/rm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/codecs/librm/rm.c b/apps/codecs/librm/rm.c
index 6bc187bb5e..eabbe5d92a 100644
--- a/apps/codecs/librm/rm.c
+++ b/apps/codecs/librm/rm.c
@@ -541,8 +541,9 @@ int rm_get_packet(uint8_t **src,RMContext *rmctx, RMPacket *pkt)
541 if (!y) 541 if (!y)
542 rmctx->audiotimestamp = pkt->timestamp; 542 rmctx->audiotimestamp = pkt->timestamp;
543 543
544 advance_buffer(src,12); 544 /* Skip packet header */
545 consumed += 12; 545 advance_buffer(src, PACKET_HEADER_SIZE);
546 consumed += PACKET_HEADER_SIZE;
546 if (rmctx->codec_type == CODEC_COOK || rmctx->codec_type == CODEC_ATRAC) { 547 if (rmctx->codec_type == CODEC_COOK || rmctx->codec_type == CODEC_ATRAC) {
547 for(x = 0 ; x < w/sps; x++) 548 for(x = 0 ; x < w/sps; x++)
548 { 549 {