Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9fb1396 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

OGG: To prevent mediaserver from crash by SIGFPE (divide by zero) and more...

OGG: To prevent mediaserver from crash by SIGFPE (divide by zero) and more guarding in getMetaData().

BUG:4689872
Change-Id: I483bf230b5571a8d1815b954dce2c52e9a5f1f37
parent 31dab950
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -730,9 +730,10 @@ status_t MyVorbisExtractor::verifyHeader(
            off64_t size;
            if (mSource->getSize(&size) == OK) {
                uint64_t bps = approxBitrate();

                if (bps != 0) {
                    mMeta->setInt64(kKeyDuration, size * 8000000ll / bps);
                }
            }
            break;
        }