浏览代码

Fix division bug in aes.py

rzhxeo 12 年之前
父节点
当前提交
6e74bc41ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/aes.py

+ 1 - 1
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):