Skip to content

Commit 0b3c6e3

Browse files
committed
fix(core): make frame pts and dts immutable
1 parent 4b74f73 commit 0b3c6e3

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
@@ -61,12 +61,12 @@ data class Frame(
6161
/**
6262
* Presentation timestamp in µs
6363
*/
64-
var ptsInUs: Long,
64+
val ptsInUs: Long,
6565

6666
/**
6767
* Decoded timestamp in µs (not used).
6868
*/
69-
var dtsInUs: Long?,
69+
val dtsInUs: Long? = null,
7070

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

0 commit comments

Comments
 (0)