Skip to content

Commit

Permalink
Merge pull request #915 from joshbuddy/master
Browse files Browse the repository at this point in the history
Fix logic of key_info checking
  • Loading branch information
barbibulle authored Jan 14, 2024
2 parents 1529b83 + 65cb559 commit c5874c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Python/utils/mp4-dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,10 +1200,11 @@ def OutputSmooth(options, audio_tracks, video_tracks):
xml.SubElement(stream_index, "c", d=str(duration))

if options.playready:
key_info = None
if video_tracks:
key_info = video_tracks[0].key_info
if not key_info and len(audio_tracks):
key_info = audio_tracks[0].key_info
if not key_info and len(audio_tracks):
key_info = audio_tracks[0].key_info

if not key_info:
return
Expand Down

0 comments on commit c5874c0

Please sign in to comment.