Skip to content

Commit

Permalink
Update flatten_video_tracks.py to use deepcopy. (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
jminor committed Oct 12, 2020
1 parent 8be8eaa commit bef0d8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/flatten_video_tracks.py
Expand Up @@ -25,6 +25,7 @@

import opentimelineio as otio
import sys
import copy

inputpath, outputpath = sys.argv[1:]

Expand All @@ -49,7 +50,7 @@
newtimeline.tracks[:] = [onetrack]

# keep the audio track(s) as-is
newtimeline.tracks.extend(audio_tracks)
newtimeline.tracks.extend(copy.deepcopy(audio_tracks))

# ...and save it to disk.
print("Saving {} video tracks and {} audio tracks.".format(
Expand Down

0 comments on commit bef0d8d

Please sign in to comment.