summaryrefslogtreecommitdiffstats
path: root/src/file_mp3.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-04-02 08:34:07 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-04-02 08:34:07 +0200
commit7aaa9b6bfa6a407b477c3714a7be1dd4b025378c (patch)
tree64ef1faddbffe5ba09e791aaa3664fd4830de9d9 /src/file_mp3.c
parentd09c69438d3a401dc9192e9122d8a26a5061c03f (diff)
Revert part of commit a23c1b5a884bd22aa0eb9d9889c2e3980126925e
Diffstat (limited to 'src/file_mp3.c')
-rw-r--r--src/file_mp3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/file_mp3.c b/src/file_mp3.c
index f29b75b..765d9b1 100644
--- a/src/file_mp3.c
+++ b/src/file_mp3.c
@@ -166,10 +166,8 @@ static int header_check_mp3(const unsigned char *buffer, const unsigned int buff
return 0;
if(file_recovery!=NULL && file_recovery->file_stat!=NULL)
{
- if(file_recovery->data_check==&data_check_mp3 &&
- file_recovery->calculated_file_size == file_recovery->file_size)
- return 0;
- if(file_recovery->file_stat->file_hint==&file_hint_mkv)
+ if(file_recovery->file_stat->file_hint==&file_hint_mp3 ||
+ file_recovery->file_stat->file_hint==&file_hint_mkv)
return 0;
/* RGV values from TIFF may be similar to the beginning of an mp3 */
if(file_recovery->file_stat->file_hint==&file_hint_tiff &&