diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-24 13:21:50 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-24 13:21:50 +0000 |
commit | 33d26c72cf5655857d7c4d23981b789e01f511d5 (patch) | |
tree | 2055c104c3c20617f99a8d16882572f22d5ba7ec /libmpdemux | |
parent | 4badc643ae622764a86300371166a734c147e1ae (diff) | |
download | mpv-33d26c72cf5655857d7c4d23981b789e01f511d5.tar.bz2 mpv-33d26c72cf5655857d7c4d23981b789e01f511d5.tar.xz |
Get rid of: useless variable, useless cast and void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23648 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_audio.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libmpdemux/demux_audio.c b/libmpdemux/demux_audio.c index e8aeb24ce5..0bdfd9343f 100644 --- a/libmpdemux/demux_audio.c +++ b/libmpdemux/demux_audio.c @@ -212,29 +212,26 @@ get_flac_metadata (demuxer_t* demuxer) 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; |