summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2017-10-15 12:52:27 +1100
committerDamien Zammit <damien@zamaudio.com>2017-10-15 12:52:27 +1100
commit6c550d7b2ecb85f0aaccbe68a3b4a66bcd724946 (patch)
treebc0f1e3e90de4dc695cb805dd6ea447bfa1fceb1
parentd5bba595be2c860f91349f925ca329f2b51c29c0 (diff)
Fix ptx parsing when no audio files are present
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r--ptfformat.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ptfformat.cc b/ptfformat.cc
index 3004ef2..1350c5d 100644
--- a/ptfformat.cc
+++ b/ptfformat.cc
@@ -799,6 +799,10 @@ PTFFormat::parseaudio10(void) {
uint64_t i,j,k,l;
uint8_t charlen;
+ if (!strstr((char*)ptfunxored, "Audio Files")) {
+ return;
+ }
+
// Find end of wav file list
k = 0;
while (k < len) {