Skip to content

Commit

Permalink
Fix #548
Browse files Browse the repository at this point in the history
Always use -- to indicate the end of options.
  • Loading branch information
myd7349 committed Apr 2, 2023
1 parent 364ef47 commit d29b7cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BBDown/BBDownMuxer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static int MuxByMp4box(string videoPath, string audioPath, string outPath
}

//----分析完毕
var arguments = inputArg.ToString() + (metaArg.ToString() == "" ? "" : " -itags tool=" + metaArg.ToString()) + $" -new \"{outPath}\"";
var arguments = inputArg.ToString() + (metaArg.ToString() == "" ? "" : " -itags tool=" + metaArg.ToString()) + $" -new -- \"{outPath}\"";
LogDebug("mp4box命令:{0}", arguments);
return RunExe(MP4BOX, arguments, MP4BOX != "mp4box");
}
Expand Down Expand Up @@ -158,7 +158,7 @@ public static int MuxAV(bool useMp4box, string videoPath, string audioPath, stri
$"-c copy " + (audioOnly && audioPath == "" ? " -vn " : "") +
(subs != null ? " -c:s mov_text " : "") +
"-movflags faststart -strict unofficial -strict -2 -f mp4 " +
$"\"{outPath}\"";
$"-- \"{outPath}\"";
LogDebug("ffmpeg命令:{0}", arguments);
return RunExe(FFMPEG, arguments, FFMPEG != "ffmpeg");
}
Expand Down

0 comments on commit d29b7cb

Please sign in to comment.