Add subsampleOffsetUs to Format.toLogString

This will help with debugging subtitle sync issues as it will show up in
track selection details emitted to logcat by `EventLogger`.

PiperOrigin-RevId: 561355836
This commit is contained in:
ibaker 2023-08-30 09:00:59 -07:00 committed by Copybara-Service
parent 64792dfda2
commit 53b882d803

View File

@ -1217,6 +1217,9 @@ public final class Format implements Bundleable {
if (format.label != null) {
builder.append(", label=").append(format.label);
}
if (format.subsampleOffsetUs != OFFSET_SAMPLE_RELATIVE) {
builder.append(", subsampleOffsetUs=").append(format.subsampleOffsetUs);
}
if (format.selectionFlags != 0) {
List<String> selectionFlags = new ArrayList<>();
// LINT.IfChange(selection_flags)