From d924c83066759792f8a7622ed8794a97ca98bf4b Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Fri, 28 Nov 2014 22:43:56 +0100 Subject: Fix warning in WMA Pro and remove a c++ comment. Change-Id: Id9b50c1fdeca4d87f158da717de8958330f027ef --- lib/rbcodec/codecs/wmapro.c | 2 +- lib/rbcodec/metadata/asf.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/rbcodec/codecs/wmapro.c b/lib/rbcodec/codecs/wmapro.c index f15f36813d..540140b1e2 100644 --- a/lib/rbcodec/codecs/wmapro.c +++ b/lib/rbcodec/codecs/wmapro.c @@ -50,7 +50,7 @@ enum codec_status codec_run(void) int audiobufsize; /* Payload size */ int packetlength = 0; /* Logical packet size (minus the header size) */ int outlen = 0; /* Number of bytes written to the output buffer */ - int pktcnt = 0; /* Count of the packets played */ + unsigned int pktcnt = 0; /* Count of the packets played */ uint8_t *data; /* Pointer to decoder input buffer */ int size; /* Size of the input frame to the decoder */ intptr_t param; diff --git a/lib/rbcodec/metadata/asf.c b/lib/rbcodec/metadata/asf.c index 50e021b6a4..0d115099ec 100644 --- a/lib/rbcodec/metadata/asf.c +++ b/lib/rbcodec/metadata/asf.c @@ -279,13 +279,12 @@ static int asf_parse_header(int fd, struct mp3entry* id3, * (little endian byte order) */ lseek(fd, 32, SEEK_CUR); read_uint64le(fd, &wfx->numpackets); - //DEBUGF("read packets: %llx %lld\n", wfx->numpackets, wfx->numpackets); + /*DEBUGF("read packets: %llx %lld\n", wfx->numpackets, wfx->numpackets);*/ /* Now get the play duration - uint64_t at offset 40 */ - //lseek(fd, 4, SEEK_CUR); read_uint64le(fd, &play_duration); id3->length = play_duration / 10000; - //DEBUGF("****** length = %lums\n", id3->length); + /*DEBUGF("****** length = %lums\n", id3->length);*/ /* Read the packet size - uint32_t at offset 68 */ lseek(fd, 20, SEEK_CUR); -- cgit v1.2.3