Fix timestamp truncated to 32 bits in TS segment with $Time$ in template

Fixes #701.
This commit is contained in:
Daniel Cantarín 2020-02-01 23:37:26 -03:00 committed by GitHub
parent 7aab7a8b50
commit 1ed7de268d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,7 @@
Anders Hasselqvist <anders.hasselqvist@gmail.com>
Chun-da Chen <capitalm.c@gmail.com>
Daniel Cantarín <canta@canta.com.ar>
Google Inc. <*@google.com>
Leandro Moreira <leandro.ribeiro.moreira@gmail.com>
Leo Law <leoltlaw.gh@gmail.com>

View File

@ -25,6 +25,7 @@
Anders Hasselqvist <anders.hasselqvist@gmail.com>
Bei Li <beil@google.com>
Chun-da Chen <capitalm.c@gmail.com>
Daniel Cantarín <canta@canta.com.ar>
David Cavar <pal3thorn@gmail.com>
Gabe Kopley <gabe@philo.com>
Haoming Chen <hmchen@google.com>

View File

@ -125,7 +125,7 @@ void TsSegmenter::SetTsWriterFileOpenedForTesting(bool value) {
ts_writer_file_opened_ = value;
}
Status TsSegmenter::OpenNewSegmentIfClosed(uint32_t next_pts) {
Status TsSegmenter::OpenNewSegmentIfClosed(int64_t next_pts) {
if (ts_writer_file_opened_)
return Status::OK;
const std::string segment_name =

View File

@ -71,7 +71,7 @@ class TsSegmenter {
void SetTsWriterFileOpenedForTesting(bool value);
private:
Status OpenNewSegmentIfClosed(uint32_t next_pts);
Status OpenNewSegmentIfClosed(int64_t next_pts);
// Writes PES packets (carried in TsPackets) to a file. If a file is not open,
// it will open one. This will not close the file.