Pass frag_duration as integer (#86375)

fixes undefined
This commit is contained in:
uvjustin 2023-01-23 03:28:17 +11:00 committed by GitHub
parent 30bf0634fe
commit 8e117ee499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ class StreamMuxer:
# of the range, hoping that the parts stay pretty well bounded, and we adjust the part
# durations a bit in the hls metadata so that everything "looks" ok.
"frag_duration": str(
self._stream_settings.part_target_duration * 9e5
int(self._stream_settings.part_target_duration * 9e5)
),
}
if self._stream_settings.ll_hls