diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2015-05-11 09:25:39 +0200 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2015-05-11 09:25:39 +0200 |
commit | e1ca4010307fb53d83c5036f6c8269eb9066c928 (patch) | |
tree | 79a9547954c70be7ddc88324990d60a163ffb16d /src/file_ogg.c | |
parent | f63304053aa32515e4853c2472fb785bcda0307c (diff) |
remove always-true memcmp
Diffstat (limited to 'src/file_ogg.c')
-rw-r--r-- | src/file_ogg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ogg.c b/src/file_ogg.c index b629b71..e5b9488 100644 --- a/src/file_ogg.c +++ b/src/file_ogg.c @@ -46,10 +46,10 @@ const file_hint_t file_hint_ogg= { /* header=OggS, version=0 */ static const unsigned char ogg_header[5]= {'O','g','g','S', 0x00}; -static const unsigned char sign_theora[7]= {0x80, 't', 'h', 'e', 'o', 'r', 'a'}; static int header_check_ogg(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new) { + static const unsigned char sign_theora[7]= {0x80, 't', 'h', 'e', 'o', 'r', 'a'}; /* http://en.wikipedia.org/wiki/Ogg#File_format */ /* Return if not Beginning Of Stream and already saving the file */ if((buffer[5]&0x02)!=0x02 && |