summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-10-07 21:08:45 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-10-07 21:08:45 +0200
commitde6f50d0a3c063bf753843f17b1b819f462e5c42 (patch)
tree92e798ac8b95b517df9947be3de7707de6e4e409 /src/file_gz.c
parentb9a4402c11363669ee99d7811f457098bd53a22e (diff)
PhotoRec: recover Php Video Pro .pvp files
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index c7b76d1..66e809d 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -140,10 +140,18 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
reset_file_recovery(file_recovery_new);
file_recovery_new->min_filesize=22;
file_recovery_new->time=buffer[4]|(buffer[5]<<8)|(buffer[6]<<16)|(buffer[7]<<24);
- file_recovery_new->extension=file_hint_gz.extension;
file_recovery_new->extension="kmy";
return 1;
}
+ if(memcmp(buffer_uncompr, "PVP ", 4)==0)
+ {
+ /* php Video Pro */
+ reset_file_recovery(file_recovery_new);
+ file_recovery_new->min_filesize=22;
+ file_recovery_new->time=buffer[4]|(buffer[5]<<8)|(buffer[6]<<16)|(buffer[7]<<24);
+ file_recovery_new->extension="pvp";
+ return 1;
+ }
}
#endif
reset_file_recovery(file_recovery_new);