]> git.tue.mpg.de Git - paraslash.git/commitdiff
Simplify mp3_seek_next_header().
authorAndre Noll <maan@systemlinux.org>
Sat, 28 Jun 2008 16:18:53 +0000 (18:18 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 28 Jun 2008 16:18:53 +0000 (18:18 +0200)
mp3_afh.c

index 9c190ea6be2c50ef78a79134b578c508181b2c1b..225ddd60a8d9be0bb86ef4971212847e81df166b 100644 (file)
--- a/mp3_afh.c
+++ b/mp3_afh.c
@@ -254,7 +254,7 @@ static int mp3_seek_next_header(unsigned char *map, size_t numbytes, off_t *fpos
                }
                if (k == MIN_CONSEC_GOOD_FRAMES) {
                        *fpos = valid_start;
-                       memcpy(&(mp3.header), &h2, sizeof(struct mp3header));
+                       mp3.header = h2;
                        return first_len;
                }
        }