general opts before -i. Fixes #550

This commit is contained in:
clinton-hall 2014-09-01 14:28:42 +09:30
parent 56d75e6eb3
commit 64c02f68aa

View file

@ -372,6 +372,8 @@ def buildCommands(file, newDir):
if nzbtomedia.HWACCEL:
command.extend(['-hwaccel', 'auto'])
if nzbtomedia.GENERALOPTS:
command.extend(nzbtomedia.GENERALOPTS)
command.extend([ '-i', file])
@ -382,8 +384,6 @@ def buildCommands(file, newDir):
map_cmd.extend(['-map', n])
n += 1
if nzbtomedia.GENERALOPTS:
command.extend(nzbtomedia.GENERALOPTS)
command.extend(map_cmd)
command.extend(video_cmd)
command.extend(audio_cmd)