diff options
author | Marco Nelissen <marcone@google.com> | 2010-08-04 15:29:26 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2010-08-04 15:29:26 -0700 |
commit | e8c07d18201ac6d3a5458a2e15e5129159a1429e (patch) | |
tree | 124628b57d23541fe7511461d96c3bf52d9f746a /media/libstagefright/OggExtractor.cpp | |
parent | 60e182437228312cc28469a5b0dfde77ac848e1a (diff) | |
download | frameworks_av-e8c07d18201ac6d3a5458a2e15e5129159a1429e.zip frameworks_av-e8c07d18201ac6d3a5458a2e15e5129159a1429e.tar.gz frameworks_av-e8c07d18201ac6d3a5458a2e15e5129159a1429e.tar.bz2 |
Fix divide by zero.
Change-Id: I3113234aa5936965424dde5b24e448df1be0b603
Diffstat (limited to 'media/libstagefright/OggExtractor.cpp')
-rw-r--r-- | media/libstagefright/OggExtractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/OggExtractor.cpp b/media/libstagefright/OggExtractor.cpp index c267a23..16f094b 100644 --- a/media/libstagefright/OggExtractor.cpp +++ b/media/libstagefright/OggExtractor.cpp @@ -361,7 +361,7 @@ status_t MyVorbisExtractor::readNextPacket(MediaBuffer **out) { memcpy(tmp->data(), buffer->data(), buffer->range_length()); tmp->set_range(0, buffer->range_length()); buffer->release(); - } else { + } else if (mVi.rate) { // XXX Not only is this not technically the correct time for // this packet, we also stamp every packet in this page // with the same time. This needs fixing later. |