summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-02-01 10:04:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-02-01 10:04:48 +0100
commit990c9a93918675323855ee61a95a03ddd36c4f2e (patch)
treeccb45a0f9a36d0a0c9a51eb4c2d17c6f52107ace /src
parent6471bd8ac54ded91f25eb44d88bdad71b0c7f988 (diff)
PhotoRec: rename mov file according to first atom
Diffstat (limited to 'src')
-rw-r--r--src/file_mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_mov.c b/src/file_mov.c
index 2da4ca7..b35112c 100644
--- a/src/file_mov.c
+++ b/src/file_mov.c
@@ -233,6 +233,7 @@ static int header_check_mov(const unsigned char *buffer, const unsigned int buff
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_mov.extension;
+ file_recovery_new->file_rename=&file_rename_mov;
file_recovery_new->data_check=data_check_mov;
file_recovery_new->file_check=&file_check_size;
file_recovery_new->calculated_file_size=i+atom_size;
@@ -276,7 +277,7 @@ static data_check_t data_check_mov(const unsigned char *buffer, const unsigned i
#if 0
if(i+8 == buffer_size)
{
- return -((file_recovery->calculated_file_size-1) / (buffer_size/2));
+ return -((atom_size + buffer_size/2 - 1)/ (buffer_size/2));
}
#endif
}
@@ -313,4 +314,3 @@ static data_check_t data_check_mov(const unsigned char *buffer, const unsigned i
#endif
return DC_CONTINUE;
}
-