Skip to content

Commit

Permalink
sin.program_splice_flag = True
Browse files Browse the repository at this point in the history
  • Loading branch information
futzu authored Jul 22, 2023
1 parent b799acc commit ff538f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions threefive/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def mk_time_signal(pts=None):

def mk_splice_insert(event_id, pts=None, duration=None, out=False):
"""
mk_cue returns a Cue with a Splice Insert.
mk_splice_insert returns a Cue with a Splice Insert.
The args set the SpliceInsert vars.
Expand Down Expand Up @@ -93,11 +93,10 @@ def mk_splice_insert(event_id, pts=None, duration=None, out=False):
sin.avail_expected = 0
sin.splice_immediate_flag = True
sin.time_specified_flag = False
sin.program_splice_flag = False
sin.program_splice_flag = True

# pts = None for Splice Immediate
if pts:
sin.program_splice_flag = True
sin.splice_immediate_flag = False
sin.time_specified_flag = True
sin.pts_time = float(pts)
Expand Down

0 comments on commit ff538f7

Please sign in to comment.