Move struct senders[] from server.c to vss.c.
[paraslash.git] / afh_common.c
index 4f84334c8486d48aee712f6099fd72e847b78af5..feee4c8d3dc14b492a65271daa5cffd9a90e93a5 100644 (file)
@@ -143,7 +143,11 @@ int guess_audio_format(const char *name)
 int compute_afhi(const char *path, char *data, size_t size,
                struct afh_info *afhi)
 {
-       int ret, i, format = guess_audio_format(path);
+       int ret, i, format;
+
+       afhi->header_offset = 0;
+       afhi->header_len = 0;
+       format = guess_audio_format(path);
 
        if (format >= 0) {
                ret = afl[format].get_file_info(data, size, afhi);