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 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'apps/codecs/librm/rm.c') 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); -- cgit v1.2.3