From 6c550d7b2ecb85f0aaccbe68a3b4a66bcd724946 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 15 Oct 2017 12:52:27 +1100 Subject: Fix ptx parsing when no audio files are present Signed-off-by: Damien Zammit --- ptfformat.cc | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3