file_riff.c: Fix regression introduced in #bd92f8847e15aadfe676e7e56e3f934547dd762b

This commit is contained in:
Christophe Grenier 2011-11-02 08:06:38 +01:00
parent b24ea8407a
commit 8469f754c7

View file

@ -222,7 +222,9 @@ static int header_check_riff(const unsigned char *buffer, const unsigned int buf
{ {
/* Cubase Project File */ /* Cubase Project File */
file_recovery_new->extension="cpr"; file_recovery_new->extension="cpr";
file_recovery_new->calculated_file_size+=4; file_recovery_new->calculated_file_size=(((uint64_t)buffer[4])<<24) +
(((uint64_t)buffer[5])<<16) + (((uint64_t)buffer[6])<<8) +
(uint64_t)buffer[7] + 12;
return 1; return 1;
} }
if(memcmp(&buffer[8],"AVI ",4)==0) if(memcmp(&buffer[8],"AVI ",4)==0)