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 KongQun Yang
parent c731217607
commit 3c9603af13
4 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

@ -125,7 +125,7 @@ void TsSegmenter::SetTsWriterFileOpenedForTesting(bool value) {
ts_writer_file_opened_ = 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_) if (ts_writer_file_opened_)
return Status::OK; return Status::OK;
const std::string segment_name = const std::string segment_name =

View File

@ -71,7 +71,7 @@ class TsSegmenter {
void SetTsWriterFileOpenedForTesting(bool value); void SetTsWriterFileOpenedForTesting(bool value);
private: 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, // 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. // it will open one. This will not close the file.