Remove restriction on sample duration to be 0 for mp4

0 sample duration is seen occasionally in the contents in the wild.

Closes #127

Change-Id: I48b9fac4add79f39a83fc571502bedb9f0be71df
This commit is contained in:
Kongqun Yang 2016-07-18 11:37:19 -07:00 committed by KongQun Yang
parent fae7874c4c
commit 2cdd54b6f7
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ Fragmenter::~Fragmenter() {}
Status Fragmenter::AddSample(scoped_refptr<MediaSample> sample) {
DCHECK(sample);
CHECK_GT(sample->duration(), 0);
if (sample->duration() == 0) {
LOG(WARNING) << "Unexpected sample with zero duration @ dts "
<< sample->dts();
}
if (!fragment_initialized_) {
Status status = InitializeFragment(sample->dts());