Bug 565322 deadcode in nsOggReader::FindEndTime if !codecState

r=cpearce

--HG--
extra : rebase_source : d386c3e6d9524a86a7c4fe420c756e9352a48330
This commit is contained in:
timeless@mozdev.org 2010-05-25 17:34:09 +03:00
Родитель 15cf63f6c5
Коммит fa5099361d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -904,10 +904,11 @@ PRInt64 nsOggReader::FindEndTime(PRInt64 aEndOffset)
// This page is from a bitstream which we haven't encountered yet.
// It's probably from a new "link" in a "chained" ogg. Don't
// bother even trying to find a duration...
endTime = -1;
break;
}
PRInt64 t = codecState ? codecState->Time(granulepos) : -1;
PRInt64 t = codecState->Time(granulepos);
if (t != -1) {
endTime = t;
}