Fix bug: get wrong duration in some http videoes.