summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-02-15 13:46:46 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-02-15 13:46:46 +0100
commit9a0548a2fa68bebf21d8ec766ec708f7b3c076c6 (patch)
treedbd9805bd269baa0794dc90f979d9b52f117fa01
parent87a927de77b6f8ef585014957042dfc8b3972f47 (diff)
PhotoRec: recover WebP images with the extension .webp instead of .avi
-rw-r--r--src/file_riff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_riff.c b/src/file_riff.c
index e0b68bd..f6cc5ca 100644
--- a/src/file_riff.c
+++ b/src/file_riff.c
@@ -306,6 +306,9 @@ static int header_check_riff(const unsigned char *buffer, const unsigned int buf
/* RFC3625 The QCP File Format and Media Types for Speech Data */
else if(memcmp(&buffer[8],"QLCM",4)==0)
file_recovery_new->extension="qcp";
+ /* https://en.wikipedia.org/wiki/WebP */
+ else if(memcmp(&buffer[8],"WEBP",4)==0)
+ file_recovery_new->extension="webp";
else
file_recovery_new->extension="avi";
return 1;