summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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