Skip to content

CC708 subtitle display issue with multiple windows in different priority #8704

@fred0426

Description

@fred0426

I play a stream with CC708 subtitle on Exoplayer 2.13.1. The CC708 subtitle can NOT be displayed correctly with multiple windows that have different window priorities. Please see the below picture.
CC708 issue

I found one line code is incorrect in Cea708Decoder class:

    Collections.sort(
        displayCueInfos,
        (thisInfo, thatInfo) -> Integer.compare(thisInfo.priority,thatInfo.priority));

should be changed to :

    Collections.sort(
        displayCueInfos,
        (thisInfo, thatInfo) -> Integer.compare(thatInfo.priority,thisInfo.priority));

So the sort is descending order, not ascending order. Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions