summaryrefslogtreecommitdiffstats
path: root/src/file_ogg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-07-30 09:20:33 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-07-30 09:20:33 +0200
commit9194837f07ab4bada8d2b3232331b62cee56521a (patch)
tree30a25c7852c162acc67086c34e1863fca432c9dc /src/file_ogg.c
parent90a405761181b8906513e3b802f6e3424f4540ec (diff)
PhotoRec: avoid to split mov, stricter check for m2ts, m2t, ogg anti-split check
Diffstat (limited to 'src/file_ogg.c')
-rw-r--r--src/file_ogg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file_ogg.c b/src/file_ogg.c
index 40e62d0..9549738 100644
--- a/src/file_ogg.c
+++ b/src/file_ogg.c
@@ -54,7 +54,9 @@ static void register_header_check_ogg(file_stat_t *file_stat)
static int header_check_ogg(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
- if(file_recovery!=NULL && file_recovery->file_stat!=NULL && file_recovery->file_stat->file_hint==&file_hint_ogg)
+ if(file_recovery!=NULL && file_recovery->file_stat!=NULL &&
+ file_recovery->file_stat->file_hint==&file_hint_ogg &&
+ file_recovery->calculated_file_size == file_recovery->file_size)
return 0;
if(memcmp(buffer,ogg_header,sizeof(ogg_header))==0)
{