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:
parent
fae7874c4c
commit
2cdd54b6f7
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue