about summary refs log tree commit diff
path: root/youtube_dl/aes.py
diff options
context:
space:
mode:
authorrzhxeo <rzhxeo@users.noreply.github.com>2013-08-28 16:01:43 +0200
committerrzhxeo <rzhxeo@users.noreply.github.com>2013-08-28 16:01:43 +0200
commit6e74bc41ca07bda56107cfff9ceb98d6f8d28e53 (patch)
tree761eef69f43739faf25b5de5be948f49657f7eea /youtube_dl/aes.py
parentcba892fa1fd6a7f1278e637c338921c5ae236840 (diff)
downloadyoutube-dl-6e74bc41ca07bda56107cfff9ceb98d6f8d28e53.tar.gz
youtube-dl-6e74bc41ca07bda56107cfff9ceb98d6f8d28e53.tar.xz
youtube-dl-6e74bc41ca07bda56107cfff9ceb98d6f8d28e53.zip
Fix division bug in aes.py
Diffstat (limited to 'youtube_dl/aes.py')
-rw-r--r--youtube_dl/aes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/aes.py b/youtube_dl/aes.py
index 278f8bb82..9913d59a4 100644
--- a/youtube_dl/aes.py
+++ b/youtube_dl/aes.py
@@ -18,7 +18,7 @@ def aes_ctr_decrypt(data, key, counter):
     @returns {int[]}           decrypted data
     """
     expanded_key = key_expansion(key)
-    block_count = int(ceil(float(len(data)) // BLOCK_SIZE_BYTES))
+    block_count = int(ceil(float(len(data)) / BLOCK_SIZE_BYTES))
     
     decrypted_data=[]
     for i in range(block_count):