Loading media/libstagefright/MPEG4Extractor.cpp +3 −0 Original line number Original line Diff line number Diff line Loading @@ -1677,6 +1677,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) { // ratio. Use compression ratio of 1. // ratio. Use compression ratio of 1. max_size = width * height * 3 / 2; max_size = width * height * 3 / 2; } } // HACK: allow 10% overhead // TODO: read sample size from traf atom for fragmented MPEG4. max_size += max_size / 10; mLastTrack->meta->setInt32(kKeyMaxInputSize, max_size); mLastTrack->meta->setInt32(kKeyMaxInputSize, max_size); } } Loading Loading
media/libstagefright/MPEG4Extractor.cpp +3 −0 Original line number Original line Diff line number Diff line Loading @@ -1677,6 +1677,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) { // ratio. Use compression ratio of 1. // ratio. Use compression ratio of 1. max_size = width * height * 3 / 2; max_size = width * height * 3 / 2; } } // HACK: allow 10% overhead // TODO: read sample size from traf atom for fragmented MPEG4. max_size += max_size / 10; mLastTrack->meta->setInt32(kKeyMaxInputSize, max_size); mLastTrack->meta->setInt32(kKeyMaxInputSize, max_size); } } Loading