parent
8e113af215
commit
dba798798b
|
@ -150,9 +150,11 @@ Status Segmenter::Initialize(const StreamInfo& info,
|
||||||
}
|
}
|
||||||
|
|
||||||
Status Segmenter::Finalize() {
|
Status Segmenter::Finalize() {
|
||||||
|
if (prev_sample_) {
|
||||||
uint64_t duration =
|
uint64_t duration =
|
||||||
prev_sample_->pts() - first_timestamp_ + prev_sample_->duration();
|
prev_sample_->pts() - first_timestamp_ + prev_sample_->duration();
|
||||||
segment_info_.set_duration(FromBmffTimestamp(duration));
|
segment_info_.set_duration(FromBmffTimestamp(duration));
|
||||||
|
}
|
||||||
return DoFinalize();
|
return DoFinalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue