diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-01-28 05:14:40 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-01-28 05:20:21 +0700 |
commit | c989bdbef8fdcfd38d51b987a4c745479d02e2f2 (patch) | |
tree | 46a5ed055d880fbaa38372b256aa3ac2219086ca /youtube_dl/downloader/ism.py | |
parent | eee1692ff3d811101fbfa996e118ee397ddeb248 (diff) |
[downloader/ism] Fix Python 3.2 support
Diffstat (limited to 'youtube_dl/downloader/ism.py')
-rw-r--r-- | youtube_dl/downloader/ism.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/ism.py b/youtube_dl/downloader/ism.py index 9b001ecff..138564267 100644 --- a/youtube_dl/downloader/ism.py +++ b/youtube_dl/downloader/ism.py @@ -139,7 +139,7 @@ def write_piff_header(stream, params): sample_entry_payload += u16.pack(0x18) # depth sample_entry_payload += s16.pack(-1) # pre defined - codec_private_data = binascii.unhexlify(params['codec_private_data']) + codec_private_data = binascii.unhexlify(params['codec_private_data'].encode('utf-8')) if fourcc in ('H264', 'AVC1'): sps, pps = codec_private_data.split(u32.pack(1))[1:] avcc_payload = u8.pack(1) # configuration version |