Skip to content

Conversation

@DhanushVarma-2
Copy link

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 return CCX_TRUE when any decoder has processed enough data, regardless of multiprogram setting.

Testing:

  • Verified the fix resolves the issue with the original failing file
  • Confirmed no regressions in normal operation
  • Program now correctly handles files with no subtitles without false errors

dhanush varma added 3 commits November 8, 2025 11:42
Fixes CCExtractor#1719 - build was failing with --enable-hardsubx due to missing
tesseract library linking. Added pkg_check_modules for tesseract and
leptonica in the HARDSUBX section of CMakeLists.txt.

Tested with: cmake -DWITH_HARDSUBX=ON -DWITH_OCR=ON -DWITH_FFMPEG=ON
Remove multiprogram check from is_decoder_processed_enough() that caused false 'premature ending' errors in multiprogram mode. The function should return CCX_TRUE when any decoder has processed enough data, regardless of multiprogram setting.

Tested with the original failing file - resolves the issue without regression.
@ccextractor-bot
Copy link
Collaborator

CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 42d7509...:
Report Name Tests Passed
Broken 13/13
CEA-708 14/14
DVB 7/7
DVD 3/3
DVR-MS 2/2
General 27/27
Hardsubx 1/1
Hauppage 3/3
MP4 3/3
NoCC 10/10
Options 86/86
Teletext 21/21
WTV 13/13
XDS 34/34

Congratulations: Merging this PR would fix the following tests:


All tests passing on the master branch were passed completely.

Check the result page for more info.

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.

[BUG] Error in switch_to_next_file()

2 participants