summaryrefslogtreecommitdiffstats
path: root/src/file_mp3.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
commit20b02dd16415e21e57c7a36f5e12d631501d8c75 (patch)
tree1817c862eec9e1555f8bd5e4974c08a2c8eb37fe /src/file_mp3.c
parent8a5bc214d7b52627aad61a243140e6a7f0987ace (diff)
PhotoRec: for some file formats, check if file is complete when a new file is found
Diffstat (limited to 'src/file_mp3.c')
-rw-r--r--src/file_mp3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_mp3.c b/src/file_mp3.c
index b2414fc..cddcbb0 100644
--- a/src/file_mp3.c
+++ b/src/file_mp3.c
@@ -175,8 +175,8 @@ static int header_check_mp3(const unsigned char *buffer, const unsigned int buff
if(file_recovery->file_stat->file_hint==&file_hint_tiff &&
buffer[0]==buffer[3] && buffer[1]==buffer[4] && buffer[2]==buffer[5])
{
- header_ignored(file_recovery_new);
- return 0;
+ if(header_ignored_adv(file_recovery, file_recovery_new)==0)
+ return 0;
}
}
while(potential_frame_offset+1 < buffer_size &&