diff --git a/media/formats/mp4/track_run_iterator.cc b/media/formats/mp4/track_run_iterator.cc index 510e6630c2..b6c82d93c2 100644 --- a/media/formats/mp4/track_run_iterator.cc +++ b/media/formats/mp4/track_run_iterator.cc @@ -446,7 +446,7 @@ int64 TrackRunIterator::GetMaxClearOffset() { } } if (offset == kint64max) - return 0; + return runs_.empty() ? 0 : runs_[0].sample_start_offset; return offset; }