# HG changeset patch # User reimar # Date 1182691310 0 # Node ID d4f96ae7081c6fbf34375d0277f4d19ce55f3977 # Parent 980d734e102b952d29a6a4df22ff6070b979f9c6 Get rid of: useless variable, useless cast and void * arithmetic diff -r 980d734e102b -r d4f96ae7081c libmpdemux/demux_audio.c --- a/libmpdemux/demux_audio.c Sun Jun 24 13:20:17 2007 +0000 +++ b/libmpdemux/demux_audio.c Sun Jun 24 13:21:50 2007 +0000 @@ -212,29 +212,26 @@ uint32_t length, comment_list_len; char comments[blk_len]; - void *ptr = comments; + uint8_t *ptr = comments; char *comment; int cn; char c; if (stream_read (s, comments, blk_len) == blk_len) { - uint8_t *p = ptr; - length = AV_RL32(p); + length = AV_RL32(ptr); ptr += 4 + length; - p = ptr; - comment_list_len = AV_RL32(p); + comment_list_len = AV_RL32(ptr); ptr += 4; cn = 0; for (; cn < comment_list_len; cn++) { - p = ptr; - length = AV_RL32(p); + length = AV_RL32(ptr); ptr += 4; - comment = (char *) ptr; + comment = ptr; c = comment[length]; comment[length] = 0;