src/file_flac.c: add missing return value (bug introduced in 5f635200cf8795e91b8baebdadf5fe094e6ecfbd)

This commit is contained in:
Christophe Grenier 2013-03-23 19:20:40 +01:00
parent f46267b920
commit 59222e7a85

View File

@ -51,13 +51,14 @@ static int header_check_flac(const unsigned char *buffer, const unsigned int buf
#else
file_recovery_new->extension=file_hint_flac.extension;
#endif
return 1;
}
static void register_header_check_flac(file_stat_t *file_stat)
{
/* Stream marker followed by STREAMINFO Metadata block */
static const unsigned char flac_header[4]= {'f', 'L', 'a', 'C', 0x00};
static const unsigned char flac_header2[4]= {'f', 'L', 'a', 'C', 0x80};
static const unsigned char flac_header[5]= {'f', 'L', 'a', 'C', 0x00};
static const unsigned char flac_header2[5]= {'f', 'L', 'a', 'C', 0x80};
register_header_check(0, flac_header,sizeof(flac_header), &header_check_flac, file_stat);
register_header_check(0, flac_header2,sizeof(flac_header2), &header_check_flac, file_stat);
}