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 9c190ea..225ddd6 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;
                }
        }