mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-23 06:29:50 +00:00
[PR #1609] [FIX] Unexpected behavior of get_write_interval #2324
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1609
State: closed
Merged: Yes
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Closes #1606
Issue addresed
This pull request addresses issue #1606 where the get_write_interval function incorrectly returns (0,209) for a packet does not contain captions, implying that caption packets are available from index 0 to 209 which needs to be corrected.
Correction Made
The correction ensures that the correct interval (0,0) is returned, indicating that there are no captions available to write.
Implementation Details
By initialising
lastvariable which stores last caption available by 0