mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Correctly propagate format identifier for CEA-608 in HLS
Issue: #3033 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161512537
This commit is contained in:
parent
4233f81ed7
commit
2665e42f85
1 changed files with 4 additions and 3 deletions
|
|
@ -51,9 +51,10 @@ import java.util.List;
|
||||||
Assertions.checkArgument(MimeTypes.APPLICATION_CEA608.equals(channelMimeType)
|
Assertions.checkArgument(MimeTypes.APPLICATION_CEA608.equals(channelMimeType)
|
||||||
|| MimeTypes.APPLICATION_CEA708.equals(channelMimeType),
|
|| MimeTypes.APPLICATION_CEA708.equals(channelMimeType),
|
||||||
"Invalid closed caption mime type provided: " + channelMimeType);
|
"Invalid closed caption mime type provided: " + channelMimeType);
|
||||||
output.format(Format.createTextSampleFormat(idGenerator.getFormatId(), channelMimeType, null,
|
String formatId = channelFormat.id != null ? channelFormat.id : idGenerator.getFormatId();
|
||||||
Format.NO_VALUE, channelFormat.selectionFlags, channelFormat.language,
|
output.format(Format.createTextSampleFormat(formatId, channelMimeType, null, Format.NO_VALUE,
|
||||||
channelFormat.accessibilityChannel, null));
|
channelFormat.selectionFlags, channelFormat.language, channelFormat.accessibilityChannel,
|
||||||
|
null));
|
||||||
outputs[i] = output;
|
outputs[i] = output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue