From 6258e24e0e48f9325a642673077b7d93c805e405 Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Sun, 12 Jul 2009 14:43:24 +0000 Subject: Some fixes for the standalone test program. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21807 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/librm/rm.c | 10 +--------- apps/metadata/rm.c | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/apps/codecs/librm/rm.c b/apps/codecs/librm/rm.c index 4f7ebe9bef..a126a5cad1 100644 --- a/apps/codecs/librm/rm.c +++ b/apps/codecs/librm/rm.c @@ -474,7 +474,7 @@ int real_parse_header(int fd, RMContext *rmctx) void rm_get_packet_fd(int fd,RMContext *rmctx, RMPacket *pkt) { uint8_t unknown,packet_group; - uint16_t x, place; + uint16_t x; uint16_t sps = rmctx->sub_packet_size; uint16_t h = rmctx->sub_packet_h; uint16_t y = rmctx->sub_packet_cnt; @@ -484,14 +484,6 @@ void rm_get_packet_fd(int fd,RMContext *rmctx, RMPacket *pkt) { y = rmctx->sub_packet_cnt; read_uint16be(fd,&pkt->version); - - /* Simple error checking */ - if(pkt->version != 0 && pkt->version != 1) - { - DEBUGF("parsing packets failed\n"); - return -1; - } - read_uint16be(fd,&pkt->length); read_uint16be(fd,&pkt->stream_number); read_uint32be(fd,&pkt->timestamp); diff --git a/apps/metadata/rm.c b/apps/metadata/rm.c index 612dd37317..2b3100b81a 100644 --- a/apps/metadata/rm.c +++ b/apps/metadata/rm.c @@ -31,7 +31,7 @@ #include "metadata_parsers.h" #include "logf.h" -//#define DEBUG_RM +#define DEBUG_RM #ifndef DEBUG_RM #undef DEBUGF #define DEBUGF(...) @@ -281,7 +281,7 @@ static int rm_parse_header(int fd, RMContext *rmctx, struct mp3entry *id3) skipped += 40; DEBUGF(" max_bitrate = %ld\n",max_bitrate); - DEBUGF(" avg_bitrate = %ld\n",rmctx->bit_Rate); + DEBUGF(" avg_bitrate = %ld\n",rmctx->bit_rate); DEBUGF(" max_packet_size = %ld\n",max_packet_size); DEBUGF(" avg_packet_size = %ld\n",avg_packet_size); DEBUGF(" packet_count = %ld\n",packet_count); -- cgit v1.2.3