mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-21 05:29:50 +00:00
[PR #1609] [MERGED] [FIX] Unexpected behavior of get_write_interval #2320
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/1609
Author: @IshanGrover2004
Created: 5/11/2024
Status: ✅ Merged
Merged: 5/24/2024
Merged by: @cfsmp3
Base:
master← Head:fix-get-write-interval-fn📝 Commits (2)
2d13edefix: Unexpected behavior of get_write_interval920b44edocs: Add changes toCHANGES.TXT📊 Changes
2 files changed (+3 additions, -1 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/rust/src/decoder/tv_screen.rs(+2 -1)📄 Description
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🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.