-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CEA608 Captions - Row count is not updated in CueBuilder inner class #3513
Comments
Am I right in thinking |
As an additional question, if you're currently displaying three rows and get |
Annex B.8.1 of the 608 Standard about ROLL-UP style:
Where
So I think there is no need to delete any lines. The RU2-3-4 commands set up how many lines are rolling and the following carriage return will remove the appropriate ones. If the amount of lines are increased, the next CR will not remove any lines. If the amount of lines are decreased, the CR command will remove more than 1 line, so we should be good either case. Annex C.10
This aligns whit the expectation, does not mention erasing any lines when ROLL-UP style was used previously. |
Issue: #3513 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177804505
We've merged a fix into |
Issue: #3513 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177804505
The line defines captionRowCount:
ExoPlayer/library/core/src/main/java/com/google/android/exoplayer2/text/cea/Cea608Decoder.java
Line 195 in e7c60a2
The inner class CueBuilder has the same member defined on line 594.
The problem is, that the value of the inner class is only updated in ResetCueBuilders(), so this order of incoming commands and characters are processed incorrectly:
The value of captionRowCount in the inner class is not updated to 3, rendering is kept using the value 2 until the next resetCueBuilders() call. Note: if I seek back to this position in the content the captionRowCount is kept on the value last set by resetCueBuilders() so any number of rows can be shown depending on the position the seek is originating from.
The text was updated successfully, but these errors were encountered: