Skip to content

Commit

Permalink
CEA608 - Add space when handling mid-row codes
Browse files Browse the repository at this point in the history
Issue: #3906

-------------
Created by MOE: https:/google/moe
MOE_MIGRATED_REVID=200526335
  • Loading branch information
ojw28 committed Jun 18, 2018
1 parent 4dc6c85 commit afc19bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
([#4315](https:/google/ExoPlayer/issues/4315)).
* Set `METADATA_KEY_TITLE` on media descriptions
((#4292)[https:/google/ExoPlayer/issues/4292]).
* Fix missing whitespace in CEA-608
([#3906](https:/google/ExoPlayer/issues/3906)).

### 2.8.1 ###

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ private boolean handleCtrl(byte cc1, byte cc2) {
private void handleMidrowCtrl(byte cc2) {
// TODO: support the extended styles (i.e. backgrounds and transparencies)

// A midrow control code advances the cursor.
currentCueBuilder.append(' ');

// cc2 - 0|0|1|0|ATRBT|U
// ATRBT is the 3-byte encoded attribute, and U is the underline toggle
boolean isUnderlined = (cc2 & 0x01) == 0x01;
Expand Down

0 comments on commit afc19bf

Please sign in to comment.