summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2014-11-28 22:43:56 +0100
committerMichael Giacomelli <giac2000@hotmail.com>2014-11-28 23:04:50 +0100
commitd924c83066759792f8a7622ed8794a97ca98bf4b (patch)
tree176631667c5678ac5d42de508c1493f8816482d4
parentaa2c55e1057c0c220a1eb37c99d2c251bfe850ab (diff)
downloadrockbox-d924c83066759792f8a7622ed8794a97ca98bf4b.tar.gz
rockbox-d924c83066759792f8a7622ed8794a97ca98bf4b.zip
Fix warning in WMA Pro and remove a c++ comment.
Change-Id: Id9b50c1fdeca4d87f158da717de8958330f027ef
-rw-r--r--lib/rbcodec/codecs/wmapro.c2
-rw-r--r--lib/rbcodec/metadata/asf.c5
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)
50 int audiobufsize; /* Payload size */ 50 int audiobufsize; /* Payload size */
51 int packetlength = 0; /* Logical packet size (minus the header size) */ 51 int packetlength = 0; /* Logical packet size (minus the header size) */
52 int outlen = 0; /* Number of bytes written to the output buffer */ 52 int outlen = 0; /* Number of bytes written to the output buffer */
53 int pktcnt = 0; /* Count of the packets played */ 53 unsigned int pktcnt = 0; /* Count of the packets played */
54 uint8_t *data; /* Pointer to decoder input buffer */ 54 uint8_t *data; /* Pointer to decoder input buffer */
55 int size; /* Size of the input frame to the decoder */ 55 int size; /* Size of the input frame to the decoder */
56 intptr_t param; 56 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,
279 * (little endian byte order) */ 279 * (little endian byte order) */
280 lseek(fd, 32, SEEK_CUR); 280 lseek(fd, 32, SEEK_CUR);
281 read_uint64le(fd, &wfx->numpackets); 281 read_uint64le(fd, &wfx->numpackets);
282 //DEBUGF("read packets: %llx %lld\n", wfx->numpackets, wfx->numpackets); 282 /*DEBUGF("read packets: %llx %lld\n", wfx->numpackets, wfx->numpackets);*/
283 283
284 /* Now get the play duration - uint64_t at offset 40 */ 284 /* Now get the play duration - uint64_t at offset 40 */
285 //lseek(fd, 4, SEEK_CUR);
286 read_uint64le(fd, &play_duration); 285 read_uint64le(fd, &play_duration);
287 id3->length = play_duration / 10000; 286 id3->length = play_duration / 10000;
288 //DEBUGF("****** length = %lums\n", id3->length); 287 /*DEBUGF("****** length = %lums\n", id3->length);*/
289 288
290 /* Read the packet size - uint32_t at offset 68 */ 289 /* Read the packet size - uint32_t at offset 68 */
291 lseek(fd, 20, SEEK_CUR); 290 lseek(fd, 20, SEEK_CUR);