Skip to content

Commit

Permalink
avoid useless malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
NevermindNilas committed Sep 23, 2024
1 parent 0c2e617 commit 03bfdd8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/argumentsChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,17 +428,15 @@ def argumentsChecker(args, mainPath, outputPath, sysUsed):
checkSystem(sysUsed)

logging.info("\n============== Arguments Checker ==============")
ffmpegPath = os.path.join(
args.ffmpeg_path = os.path.join(
mainPath,
"ffmpeg",
"ffmpeg.exe" if sysUsed == "Windows" else "ffmpeg",
)
if not os.path.exists(ffmpegPath):
if not os.path.exists(args.ffmpeg_path):
from src.getFFMPEG import getFFMPEG

args.ffmpeg_path = getFFMPEG(mainPath, sysUsed, ffmpegPath)
else:
args.ffmpeg_path = ffmpegPath
args.ffmpeg_path = getFFMPEG(mainPath, sysUsed, args.ffmpeg_path)

def adjustFeature(
feature,
Expand Down

0 comments on commit 03bfdd8

Please sign in to comment.