Skip to content

Commit

Permalink
Correctly propagate format identifier for CEA-608 in HLS
Browse files Browse the repository at this point in the history
Issue: #3033

-------------
Created by MOE: https:/google/moe
MOE_MIGRATED_REVID=161512537
  • Loading branch information
ojw28 committed Jul 12, 2017
1 parent ef56c9f commit 0052a70
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGen
Assertions.checkArgument(MimeTypes.APPLICATION_CEA608.equals(channelMimeType)
|| MimeTypes.APPLICATION_CEA708.equals(channelMimeType),
"Invalid closed caption mime type provided: " + channelMimeType);
output.format(Format.createTextSampleFormat(idGenerator.getFormatId(), channelMimeType, null,
Format.NO_VALUE, channelFormat.selectionFlags, channelFormat.language,
channelFormat.accessibilityChannel, null));
String formatId = channelFormat.id != null ? channelFormat.id : idGenerator.getFormatId();
output.format(Format.createTextSampleFormat(formatId, channelMimeType, null, Format.NO_VALUE,
channelFormat.selectionFlags, channelFormat.language, channelFormat.accessibilityChannel,
null));
outputs[i] = output;
}
}
Expand Down

0 comments on commit 0052a70

Please sign in to comment.