[PR #320] Fix #281. Crash issue in small file under 1Mib. & Referring Issue #270. Detailed error message when opening files #1159

Open
opened 2026-01-29 16:59:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/320

State: closed
Merged: No


First Commit

Because the default buffer size is set to 1024*1024. When encounters a file smaller than 1Mib, it will determined the file as done reading and close it without going through the processing loop before entering LSEEK in ccx_demuxer_getfilesize in file ccx_demuxer.c, then it fails.

The fix is just smaller the buffer size to 100K, which might be a hack but it works for most files.

Second commit.

Referring Issue #270. Detailed opening file error message.

I commit this before last PR merged, so they seems coming into one PR.

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/320 **State:** closed **Merged:** No --- First Commit Because the default buffer size is set to 1024*1024. When encounters a file smaller than 1Mib, it will determined the file as done reading and close it without going through the processing loop before entering `LSEEK` in `ccx_demuxer_getfilesize` in file `ccx_demuxer.c`, then it fails. The fix is just smaller the buffer size to 100K, which might be a hack but it works for most files. # Second commit. Referring Issue #270. Detailed opening file error message. I commit this before last PR merged, so they seems coming into one PR.
claunia added the pull-request label 2026-01-29 16:59:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1159