mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-17 05:25:33 +00:00
[QUESTION] Unexpected behavior of get_write_interval
#800
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?
Originally created by @IshanGrover2004 on GitHub (Apr 11, 2024).
CCExtractor version: 0.94
In raising this issue, I confirm the following:
Necessary information
Additional information
I was going through the codebase and testing things
I observed a function
get_write_intervalwhere this function returns the bounds in which captions are present. So that means if
caption/dtvcc_symbolin that case is default or 0 then it should return(0,0)answerBut it is returning
(0,209)even the whole row is emptyReason behind it:
0x00.is_set()is also considered as trueQuestion:
Is this a intentional behavior or just a mistake which is never noticed?
@IshanGrover2004 commented on GitHub (Apr 12, 2024):
@PunitLodha @prateekmedia @cfsmp3 @canihavesomecoffee Do you guys think, is this a actual problem?
@cfsmp3 commented on GitHub (May 5, 2024):
@IshanGrover2004 You've been looking at the code more recently than we have :-)
Being blunt, in order to answer that I'd have to reread the specs, because while I remember the basics I definitely don't remember the details (or the coding decisions back then).
If it's broken, please fx it - ultimately all we care about is correctness in output.
@IshanGrover2004 commented on GitHub (May 5, 2024):
@cfsmp3 I guess this is not reflecting any of the output bcs it fills basically 0 value to array
But while doing something like
arr.is_empty()returns false bcs it has 0 values but technically it should be true if its an actuall issueYou can see like - it was becoming a hurdle in testing thats why i asked
@IshanGrover2004 commented on GitHub (May 11, 2024):
Yes @cfsmp3, It was a minute mistake which I corrected in PR #1609