mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1762] [CLOSED] Fix premature ending error in switch_to_next_file() #2487
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1762
Author: @DhanushVarma-2
Created: 11/9/2025
Status: ❌ Closed
Base:
master← Head:fix-switch-to-next-file-1701📝 Commits (3)
1515f5cbuild: add tesseract library linking for hardsubx feature74c5590docs: add Scoop package manager installation notec3c4d3bFix premature ending error in switch_to_next_file()📊 Changes
2 files changed (+9 additions, -2 deletions)
View changed files
📝
src/CMakeLists.txt(+8 -0)📝
src/lib_ccx/lib_ccx.c(+1 -2)📄 Description
Fixes #1701
Problem:
The is_decoder_processed_enough() function always returned 'CCX_FALSE' in multiprogram mode due to an unnecessary 'ctx->multiprogram == CCX_FALSE' check. This caused false "premature ending" errors in
switch_to_next_file().Solution:
Remove the multiprogram check from
is_decoder_processed_enough(). The function should returnCCX_TRUEwhen any decoder has processed enough data, regardless of multiprogram setting.Testing:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.