summaryrefslogtreecommitdiffstats
path: root/src/file_ape.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:20:18 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:20:18 +0100
commit17040353bc6dc9d3ac701037fe90ce69382fb49f (patch)
treee37cc177b6f3c4e13cb66b491528b44aca2d1ccb /src/file_ape.c
parent134ce684e2591df9d1ede0865b7713ea311c3486 (diff)
header_check_ape: remove dead code
Diffstat (limited to 'src/file_ape.c')
-rw-r--r--src/file_ape.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/file_ape.c b/src/file_ape.c
index 936ec64..24b8e3e 100644
--- a/src/file_ape.c
+++ b/src/file_ape.c
@@ -122,20 +122,16 @@ static int header_check_ape(const unsigned char *buffer, const unsigned int buff
file_recovery_new->extension=file_hint_ape.extension;
return 1;
}
- else
- {
- if(le16(ape->nChannels)<1 || le16(ape->nChannels)>2)
- return 0;
- if(le32(ape->nSampleRate)==0)
- return 0;
- if(le32(ape->nTotalFrames)==0)
- return 0;
- reset_file_recovery(file_recovery_new);
- file_recovery_new->extension=file_hint_ape.extension;
- /* 4 + le32(ape->nHeaderBytes) + le32(ape->nTerminatingDataBytes) ? */
- return 1;
- }
- return 0;
+ if(le16(ape->nChannels)<1 || le16(ape->nChannels)>2)
+ return 0;
+ if(le32(ape->nSampleRate)==0)
+ return 0;
+ if(le32(ape->nTotalFrames)==0)
+ return 0;
+ reset_file_recovery(file_recovery_new);
+ file_recovery_new->extension=file_hint_ape.extension;
+ /* 4 + le32(ape->nHeaderBytes) + le32(ape->nTerminatingDataBytes) ? */
+ return 1;
}
static void register_header_check_ape(file_stat_t *file_stat)