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

Commit 0fc9f34d authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix divide by zero.

Change-Id: I3113234aa5936965424dde5b24e448df1be0b603
parent 8dc16c27
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -361,7 +361,7 @@ status_t MyVorbisExtractor::readNextPacket(MediaBuffer **out) {
                memcpy(tmp->data(), buffer->data(), buffer->range_length());
                memcpy(tmp->data(), buffer->data(), buffer->range_length());
                tmp->set_range(0, buffer->range_length());
                tmp->set_range(0, buffer->range_length());
                buffer->release();
                buffer->release();
            } else {
            } else if (mVi.rate) {
                // XXX Not only is this not technically the correct time for
                // XXX Not only is this not technically the correct time for
                // this packet, we also stamp every packet in this page
                // this packet, we also stamp every packet in this page
                // with the same time. This needs fixing later.
                // with the same time. This needs fixing later.