summaryrefslogtreecommitdiffstats
path: root/apps/codecs/adx.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/adx.c')
-rw-r--r--apps/codecs/adx.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c
index cc7f0320be..0c67fc8d6e 100644
--- a/apps/codecs/adx.c
+++ b/apps/codecs/adx.c
@@ -149,7 +149,7 @@ enum codec_status codec_run(void)
/* Get loop data */
looping = 0; start_adr = 0; end_adr = 0;
- if (!memcmp(buf+0x10,"\x01\xF4\x03\x00",4)) {
+ if (!memcmp(buf+0x10,"\x01\xF4\x03",3)) {
/* Soul Calibur 2 style (type 03) */
DEBUGF("ADX: type 03 found\n");
/* check if header is too small for loop data */
@@ -171,7 +171,7 @@ enum codec_status codec_run(void)
(buf[0x1f])
)/32*channels*18+chanstart;
}
- } else if (!memcmp(buf+0x10,"\x01\xF4\x04\x00",4)) {
+ } else if (!memcmp(buf+0x10,"\x01\xF4\x04",3)) {
/* Standard (type 04) */
DEBUGF("ADX: type 04 found\n");
/* check if header is too small for loop data */
@@ -196,6 +196,12 @@ enum codec_status codec_run(void)
DEBUGF("ADX: error, couldn't determine ADX type\n");
return CODEC_ERROR;
}
+
+ /* is file using encryption */
+ if (buf[0x13]==0x08) {
+ DEBUGF("ADX: error, encrypted ADX not supported\n");
+ return false;
+ }
if (looping) {
DEBUGF("ADX: looped, start: %lx end: %lx\n",start_adr,end_adr);