Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug fix] 本地文件被多次解密导致报错 The input data is not a complete block #344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BlueHtml
Copy link

@BlueHtml BlueHtml commented Jan 9, 2024

当前逻辑会优先使用本地已经下载好的文件(参见代码1代码2)。它存在一个问题,就是会把这个本地文件再走一遍解密流程。但是这个文件可能已经解密过了,再次解密就会报错The input data is not a complete block.

我修复了一下,把改名操作作为整个处理流程(下载和解密)的最后一步,改名完成即认为该文件已经是最终文件了。当再次下载时,如果本地已经存在分片文件,就直接返回,不再走处理逻辑(下载和解密)。

@RevealedSoulEven
Copy link

Yes you're right. I've faced this issue and it comes very often and you need to delete the temp file and restart in order to fix.
I can claim this is a bug and needs to be fixed.
Avoiding using temp dir if video segments are not complete and then try re downloading, it would fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants