summaryrefslogtreecommitdiffstats
path: root/src/file_riff.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-04-16 07:46:33 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-04-16 07:46:33 +0200
commit1f761fdb5fb2a3b37a6383a8a1491de9f002e2ba (patch)
treea15c8969a5d9f5500c9bdff4f352f24d781603f1 /src/file_riff.c
parent6cad72ff7653b283b1a7d78244053b40e3d9b5a3 (diff)
RIFF Cubase cpr filesize is big-endian
Diffstat (limited to 'src/file_riff.c')
-rw-r--r--src/file_riff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_riff.c b/src/file_riff.c
index 0c547bc..037b86c 100644
--- a/src/file_riff.c
+++ b/src/file_riff.c
@@ -66,7 +66,11 @@ static int header_check_riff(const unsigned char *buffer, const unsigned int buf
else if(memcmp(&buffer[8],"CDR",3)==0)
file_recovery_new->extension="cdr";
else if(memcmp(&buffer[8],"NUND",4)==0)
+ {
file_recovery_new->extension="cpr";
+ file_recovery_new->calculated_file_size=(((uint64_t)buffer[4])<<24) + (((uint64_t)buffer[5])<<16) +
+ (((uint64_t)buffer[6])<<8) + (uint64_t)buffer[7] + 12;
+ }
else if(memcmp(&buffer[8],"RMP3",4)==0 || memcmp(&buffer[8],"WAVE",4)==0)
file_recovery_new->extension="wav";
else