99)
1010
1111const (
12- VALID_EVENT_STREAM_SCHEME_ID_URI = "urn:example:eventstream"
13- VALID_EVENT_STREAM_VALUE = "eventstream"
14- VALID_EVENT_STREAM_TIMESCALE int64 = 10
12+ VALID_EVENT_STREAM_SCHEME_ID_URI = "urn:example:eventstream"
13+ VALID_EVENT_STREAM_VALUE = "eventstream"
14+ VALID_EVENT_STREAM_TIMESCALE uint = 10
1515)
1616
1717func newEventStreamMPD () * MPD {
@@ -25,19 +25,19 @@ func newEventStreamMPD() *MPD {
2525 es := EventStream {
2626 SchemeIDURI : ptrs .Strptr (VALID_EVENT_STREAM_SCHEME_ID_URI ),
2727 Value : ptrs .Strptr (VALID_EVENT_STREAM_VALUE ),
28- Timescale : ptrs .Int64ptr (VALID_EVENT_STREAM_TIMESCALE ),
28+ Timescale : ptrs .Uintptr (VALID_EVENT_STREAM_TIMESCALE ),
2929 }
3030
3131 e0 := Event {
3232 ID : ptrs .Strptr ("event-0" ),
33- PresentationTime : ptrs .Int64ptr (100 ),
34- Duration : ptrs .Int64ptr (50 ),
33+ PresentationTime : ptrs .Uint64ptr (100 ),
34+ Duration : ptrs .Uint64ptr (50 ),
3535 }
3636
3737 e1 := Event {
3838 ID : ptrs .Strptr ("event-1" ),
39- PresentationTime : ptrs .Int64ptr (200 ),
40- Duration : ptrs .Int64ptr (50 ),
39+ PresentationTime : ptrs .Uint64ptr (200 ),
40+ Duration : ptrs .Uint64ptr (50 ),
4141 }
4242
4343 es .Events = append (es .Events , e0 , e1 )
0 commit comments