PhotoRec: distinguish Apple .acc from .mp4

This commit is contained in:
Christophe Grenier 2011-04-03 17:48:27 +02:00
parent ec4cff1149
commit c51b6298f6

View file

@ -124,7 +124,6 @@ static int header_check_mov(const unsigned char *buffer, const unsigned int buff
td_memmem(&buffer[i+8], search_size-8, "mp41", 4)!=NULL ||
td_memmem(&buffer[i+8], search_size-8, "mp42", 4)!=NULL ||
td_memmem(&buffer[i+8], search_size-8, "mmp4", 4)!=NULL ||
td_memmem(&buffer[i+8], search_size-8, "M4A", 3)!=NULL ||
td_memmem(&buffer[i+8], search_size-8, "M4B", 3)!=NULL ||
td_memmem(&buffer[i+8], search_size-8, "M4P", 3)!=NULL)
{
@ -135,6 +134,15 @@ static int header_check_mov(const unsigned char *buffer, const unsigned int buff
file_recovery_new->calculated_file_size=i+atom_size;
return 1;
}
else if(td_memmem(&buffer[i+8], search_size-8, "M4A", 3)!=NULL)
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension="acc";
file_recovery_new->data_check=data_check_mov;
file_recovery_new->file_check=&file_check_size;
file_recovery_new->calculated_file_size=i+atom_size;
return 1;
}
else if(td_memmem(&buffer[i+8], search_size-8, "3gp", 3)!=NULL)
{
reset_file_recovery(file_recovery_new);