X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh_common.c;h=feee4c8d3dc14b492a65271daa5cffd9a90e93a5;hp=4f84334c8486d48aee712f6099fd72e847b78af5;hb=5a94fb80bc774066d0fc995ca88109fe7d1783b5;hpb=04a8d064400936dc6ecd3b137397cb2ce2cc25d7 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);