From eec5554fe865b475a289fa5547d135a6d185fcf0 Mon Sep 17 00:00:00 2001
From: Conrad Zelck <git@simpel.cc>
Date: Mon, 6 Apr 2020 20:45:29 +0200
Subject: [PATCH] Quote output file

Files with spaces will chrash

Signed-off-by: Conrad Zelck <git@simpel.cc>
---
 Pro_Audio.au3 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Pro_Audio.au3 b/Pro_Audio.au3
index 686bf90..096fa4e 100644
--- a/Pro_Audio.au3
+++ b/Pro_Audio.au3
@@ -3,7 +3,7 @@
 #AutoIt3Wrapper_UseX64=n
 #AutoIt3Wrapper_Res_Comment=Converting to wav with 48kHz 16bit.
 #AutoIt3Wrapper_Res_Description=Converting to wav with 48kHz 16bit.
-#AutoIt3Wrapper_Res_Fileversion=1.1.0.20
+#AutoIt3Wrapper_Res_Fileversion=1.1.0.22
 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
 #AutoIt3Wrapper_Res_CompanyName=Norddeutscher Rundfunk
 #AutoIt3Wrapper_Res_LegalCopyright=Conrad Zelck
@@ -131,8 +131,7 @@ For $i = 1 To $aFileList[0]
 	$iDelimiter = StringInStr($sCurTrack, ".", 0, -1)
 	$sCurTrackMinusExt = StringLeft($sCurTrack, $iDelimiter - 1)
 	$sCurTrackNewExt = '_48kHz_16bit.wav'
-	$sCommand = '-i "' & $sCurTrack & '" -c:a pcm_s16le -ar 48000 -y ' & $sCurTrackMinusExt & $sCurTrackNewExt
-
+	$sCommand = '-i "' & $sCurTrack & '" -c:a pcm_s16le -ar 48000 -y "' & $sCurTrackMinusExt & $sCurTrackNewExt & '"'
 	_runFFmpeg('ffmpeg ' & $sCommand, $sPathFFmpeg)
 	GUICtrlSetData($g_idProgress, 100) ; if ffmpeg is done than set progress to 100 - sometimes last StderrRead with 100 is missed
 Next
-- 
GitLab