mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Naming tweak
This commit is contained in:
parent
b510088689
commit
4076b08e4b
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ import com.google.android.exoplayer.util.ParsableByteArray;
|
||||||
payloadSize += b;
|
payloadSize += b;
|
||||||
} while (b == 0xFF);
|
} while (b == 0xFF);
|
||||||
// Process the payload. We only support EIA-608 payloads currently.
|
// Process the payload. We only support EIA-608 payloads currently.
|
||||||
if (Eia608Parser.inspectSeiMessage(payloadType, payloadSize, seiBuffer)) {
|
if (Eia608Parser.isSeiMessageEia608(payloadType, payloadSize, seiBuffer)) {
|
||||||
startSample(pesTimeUs);
|
startSample(pesTimeUs);
|
||||||
appendData(seiBuffer, payloadSize);
|
appendData(seiBuffer, payloadSize);
|
||||||
commitSample(true);
|
commitSample(true);
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ public class Eia608Parser {
|
||||||
* @param payload A {@link ParsableByteArray} containing the payload.
|
* @param payload A {@link ParsableByteArray} containing the payload.
|
||||||
* @return True if the sei message contains EIA-608. False otherwise.
|
* @return True if the sei message contains EIA-608. False otherwise.
|
||||||
*/
|
*/
|
||||||
public static boolean inspectSeiMessage(int payloadType, int payloadLength,
|
public static boolean isSeiMessageEia608(int payloadType, int payloadLength,
|
||||||
ParsableByteArray payload) {
|
ParsableByteArray payload) {
|
||||||
if (payloadType != PAYLOAD_TYPE_CC || payloadLength < 8) {
|
if (payloadType != PAYLOAD_TYPE_CC || payloadLength < 8) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue