Skip to content

Commit

Permalink
ld-cut: add - for standard output
Browse files Browse the repository at this point in the history
  • Loading branch information
happycube committed Jan 15, 2024
1 parent 3fc0e1e commit f9b1995
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ld-cut
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ args = parser.parse_args()
filename = args.infile
outname = args.outfile

if outname == '-':
outname = "/dev/stdout"

vid_standard = "PAL" if args.pal else "NTSC"

if args.pal and args.ntsc:
Expand Down Expand Up @@ -139,7 +142,7 @@ if makelds:
elif makeldf:
process, fd = ldf_pipe(outname, args.ldfcomp)
else:
fd = open(args.outfile, "wb")
fd = open(outname, "wb")

# print(startloc, endloc, startidx, endidx)

Expand Down

0 comments on commit f9b1995

Please sign in to comment.