X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh_common.c;h=feee4c8d3dc14b492a65271daa5cffd9a90e93a5;hp=4f84334c8486d48aee712f6099fd72e847b78af5;hb=78882bd94652b156e55e6385a33cd5126c439651;hpb=97727c2e95cce064e03f495e97119cae447397d7 diff --git a/afh_common.c b/afh_common.c index 4f84334c..feee4c8d 100644 --- a/afh_common.c +++ b/afh_common.c @@ -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);