summaryrefslogtreecommitdiffstats
path: root/src/file_ogg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-09-12 14:10:47 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-09-12 14:10:47 +0200
commitba35329c75db96d6f968679d091eb6559bf4095f (patch)
tree712529c7153d0735f84476d453b3eff8bbeda35f /src/file_ogg.c
parent6e2814fc0a5b055484227ca62ac93a8d9ecbdd6d (diff)
PhotoRec: Recover ogg video as .ogv instead of .ogm (old extension)
Avoid to split some .ogv video
Diffstat (limited to 'src/file_ogg.c')
-rw-r--r--src/file_ogg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/file_ogg.c b/src/file_ogg.c
index ab572f3..fb9d43d 100644
--- a/src/file_ogg.c
+++ b/src/file_ogg.c
@@ -53,9 +53,7 @@ static int header_check_ogg(const unsigned char *buffer, const unsigned int buff
/* Return if not Beginning Of Stream and already saving the file */
if((buffer[5]&0x02)!=0x02 &&
file_recovery->file_stat!=NULL &&
- file_recovery->file_stat->file_hint==&file_hint_ogg &&
- (file_recovery->blocksize < 27+255 ||
- file_recovery->calculated_file_size == file_recovery->file_size))
+ file_recovery->file_stat->file_hint==&file_hint_ogg)
{
header_ignored(file_recovery_new);
return 0;
@@ -69,7 +67,7 @@ static int header_check_ogg(const unsigned char *buffer, const unsigned int buff
}
/* Ogg data, Theora video */
if(memcmp(&buffer[28], sign_theora, sizeof(sign_theora))==0)
- file_recovery_new->extension="ogm";
+ file_recovery_new->extension="ogv";
else if(memcmp(&buffer[0x78], sign_theora, sizeof(sign_theora))==0)
file_recovery_new->extension="ogv";
else