Skip to content

Commit

Permalink
Merge pull request #932 from ftyp/fix-eac3-smooth
Browse files Browse the repository at this point in the history
Fix eac3 smooth
  • Loading branch information
barbibulle committed Mar 22, 2024
2 parents ea90ccd + 8637c32 commit 525027c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Python/utils/mp4-dash.py
Expand Up @@ -1142,7 +1142,7 @@ def OutputSmooth(options, audio_tracks, video_tracks):
audio_tag = '65534'
fourcc = 'EC-3'
channels = str(channels)
data_rate = int(audio_track.info['sample_descriptions'][0]['dolby_digital_info']['data_rate'])
data_rate = int(audio_track.info['sample_descriptions'][0]['dolby_digital_plus_info']['data_rate'])
packet_size = str(4*data_rate)
else:
# assume AAC
Expand Down
2 changes: 1 addition & 1 deletion Source/Python/utils/mp4utils.py
Expand Up @@ -1050,7 +1050,7 @@ def ComputeDolbyDigitalPlusSmoothStreamingInfo(track):
mask_hex_be = "{0:0{1}x}".format(channel_mask, 4)
info += mask_hex_be[2:4]+mask_hex_be[0:2]+'0000'
info += "af87fba7022dfb42a4d405cd93843bdd"
info += track.info['sample_descriptions'][0]['dolby_digital_info']['dec3_payload']
info += track.info['sample_descriptions'][0]['dolby_digital_plus_info']['dec3_payload']
return (channel_count, info.lower())

def ComputeMarlinPssh(options):
Expand Down

0 comments on commit 525027c

Please sign in to comment.