Skip to content

Commit cf83143

Browse files
committed
fix(core): make frame pts and dts immutable
1 parent 16cd5fc commit cf83143

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/java/io/github/thibaultbee/streampack/core/elements/data

1 file changed

+2
-2
lines changed

core/src/main/java/io/github/thibaultbee/streampack/core/elements/data/Frame.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ data class Frame(
7272
/**
7373
* Presentation timestamp in µs
7474
*/
75-
var ptsInUs: Long,
75+
val ptsInUs: Long,
7676

7777
/**
7878
* Decoded timestamp in µs (not used).
7979
*/
80-
var dtsInUs: Long? = null,
80+
val dtsInUs: Long? = null,
8181

8282
/**
8383
* [Boolean.true] if frame is a key frame (I-frame for AVC/HEVC and audio frames)

0 commit comments

Comments
 (0)