forked from len0rd/rockbox
Some fixes for the standalone test program.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
edf3af2c68
commit
6258e24e0e
2 changed files with 3 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue