summaryrefslogtreecommitdiffstats
path: root/src/filegen.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:50:55 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:50:55 +0100
commit87a42aeb971f0be3285425f2140a1ed19c387302 (patch)
tree0f4f195b02eab7b6bf733d43bd6b98acb2e70fda /src/filegen.c
parentc2164967bdb6b8a92fc518f49350e23f1bc7cc07 (diff)
PhotoRec: recover MPEG transport stream .ts (disabled by default)
Diffstat (limited to 'src/filegen.c')
-rw-r--r--src/filegen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/filegen.c b/src/filegen.c
index 399f40a..44fda82 100644
--- a/src/filegen.c
+++ b/src/filegen.c
@@ -283,6 +283,12 @@ void file_check_size(file_recovery_t *file_recovery)
file_recovery->file_size=file_recovery->calculated_file_size;
}
+void file_check_size_lax(file_recovery_t *file_recovery)
+{
+ if(file_recovery->file_size > file_recovery->calculated_file_size)
+ file_recovery->file_size=file_recovery->calculated_file_size;
+}
+
void reset_file_recovery(file_recovery_t *file_recovery)
{
file_recovery->filename[0]='\0';