Fix packager failure if there is only one sample in a fragment

That is a very corner corner case.

Change-Id: I45bc6c2d41db2a666a4ad997e4bf2eb17843e3ea
This commit is contained in:
KongQun Yang 2014-07-16 19:35:00 -07:00 committed by Gerrit Code Review
parent 78aa230552
commit 66f155502d
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ int64 TrackRunIterator::GetMaxClearOffset() {
} }
} }
if (offset == kint64max) if (offset == kint64max)
return 0; return runs_.empty() ? 0 : runs_[0].sample_start_offset;
return offset; return offset;
} }