From fa5099361d62383486d1e96e9f9a9ecb23ec0809 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Tue, 25 May 2010 17:34:09 +0300 Subject: [PATCH] Bug 565322 deadcode in nsOggReader::FindEndTime if !codecState r=cpearce --HG-- extra : rebase_source : d386c3e6d9524a86a7c4fe420c756e9352a48330 --- content/media/ogg/nsOggReader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/media/ogg/nsOggReader.cpp b/content/media/ogg/nsOggReader.cpp index 69865470f63..528c68b8651 100644 --- a/content/media/ogg/nsOggReader.cpp +++ b/content/media/ogg/nsOggReader.cpp @@ -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; }