about summary refs log tree commit diff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorRobin Neatherway <robin.neatherway@gmail.com>2017-07-14 17:08:32 +0100
committerSergey M <dstftw@gmail.com>2017-07-14 23:08:32 +0700
commit2583c0b54e56f6dbce85a079d91a05e9b13c2dce (patch)
tree21e9243f7e79e7186bdb23eff2c24da22cad312d /youtube_dl/downloader
parent7d02dcfaa2589453ee3cc6c88ee27f04c252f8a7 (diff)
downloadyoutube-dl-2583c0b54e56f6dbce85a079d91a05e9b13c2dce.tar.gz
youtube-dl-2583c0b54e56f6dbce85a079d91a05e9b13c2dce.tar.xz
youtube-dl-2583c0b54e56f6dbce85a079d91a05e9b13c2dce.zip
Fix bugs caused by typos
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/ism.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/downloader/ism.py b/youtube_dl/downloader/ism.py
index 5f6f9faef..9b001ecff 100644
--- a/youtube_dl/downloader/ism.py
+++ b/youtube_dl/downloader/ism.py
@@ -98,7 +98,7 @@ def write_piff_header(stream, params):
 
     if is_audio:
         smhd_payload = s88.pack(0)  # balance
-        smhd_payload = u16.pack(0)  # reserved
+        smhd_payload += u16.pack(0)  # reserved
         media_header_box = full_box(b'smhd', 0, 0, smhd_payload)  # Sound Media Header
     else:
         vmhd_payload = u16.pack(0)  # graphics mode
@@ -126,7 +126,6 @@ def write_piff_header(stream, params):
         if fourcc == 'AACL':
             sample_entry_box = box(b'mp4a', sample_entry_payload)
     else:
-        sample_entry_payload = sample_entry_payload
         sample_entry_payload += u16.pack(0)  # pre defined
         sample_entry_payload += u16.pack(0)  # reserved
         sample_entry_payload += u32.pack(0) * 3  # pre defined