Loading media/extractors/mp4/MPEG4Extractor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -628,7 +628,7 @@ status_t MPEG4Extractor::readMetaData() { track->meta.setInt32(kKeyTrackID, imageIndex); track->includes_expensive_metadata = false; track->skipTrack = false; track->timescale = 0; track->timescale = 1000000; } } Loading media/libstagefright/FrameDecoder.cpp +19 −22 Original line number Diff line number Diff line Loading @@ -39,8 +39,8 @@ namespace android { static const int64_t kBufferTimeOutUs = 30000ll; // 30 msec static const size_t kRetryCount = 20; // must be >0 static const int64_t kBufferTimeOutUs = 10000ll; // 10 msec static const size_t kRetryCount = 50; // must be >0 //static sp<IMemory> allocVideoFrame(const sp<MetaData>& trackMeta, Loading Loading @@ -269,10 +269,13 @@ status_t FrameDecoder::extractInternal( uint32_t flags = 0; sp<MediaCodecBuffer> codecBuffer = NULL; // Queue as many inputs as we possibly can, then block on dequeuing // outputs. After getting each output, come back and queue the inputs // again to keep the decoder busy. while (haveMoreInputs) { err = decoder->dequeueInputBuffer(&inputIndex, kBufferTimeOutUs); err = decoder->dequeueInputBuffer(&inputIndex, 0); if (err != OK) { ALOGW("Timed out waiting for input"); ALOGV("Timed out waiting for input"); if (retriesLeft) { err = OK; } Loading Loading @@ -311,8 +314,6 @@ status_t FrameDecoder::extractInternal( } mediaBuffer->release(); break; } if (haveMoreInputs && inputIndex < inputBuffers.size()) { ALOGV("QueueInput: size=%zu ts=%" PRId64 " us flags=%x", Loading @@ -328,10 +329,6 @@ status_t FrameDecoder::extractInternal( if (flags & MediaCodec::BUFFER_FLAG_EOS) { haveMoreInputs = false; } // we don't expect an output from codec config buffer if (flags & MediaCodec::BUFFER_FLAG_CODECCONFIG) { continue; } } Loading Loading
media/extractors/mp4/MPEG4Extractor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -628,7 +628,7 @@ status_t MPEG4Extractor::readMetaData() { track->meta.setInt32(kKeyTrackID, imageIndex); track->includes_expensive_metadata = false; track->skipTrack = false; track->timescale = 0; track->timescale = 1000000; } } Loading
media/libstagefright/FrameDecoder.cpp +19 −22 Original line number Diff line number Diff line Loading @@ -39,8 +39,8 @@ namespace android { static const int64_t kBufferTimeOutUs = 30000ll; // 30 msec static const size_t kRetryCount = 20; // must be >0 static const int64_t kBufferTimeOutUs = 10000ll; // 10 msec static const size_t kRetryCount = 50; // must be >0 //static sp<IMemory> allocVideoFrame(const sp<MetaData>& trackMeta, Loading Loading @@ -269,10 +269,13 @@ status_t FrameDecoder::extractInternal( uint32_t flags = 0; sp<MediaCodecBuffer> codecBuffer = NULL; // Queue as many inputs as we possibly can, then block on dequeuing // outputs. After getting each output, come back and queue the inputs // again to keep the decoder busy. while (haveMoreInputs) { err = decoder->dequeueInputBuffer(&inputIndex, kBufferTimeOutUs); err = decoder->dequeueInputBuffer(&inputIndex, 0); if (err != OK) { ALOGW("Timed out waiting for input"); ALOGV("Timed out waiting for input"); if (retriesLeft) { err = OK; } Loading Loading @@ -311,8 +314,6 @@ status_t FrameDecoder::extractInternal( } mediaBuffer->release(); break; } if (haveMoreInputs && inputIndex < inputBuffers.size()) { ALOGV("QueueInput: size=%zu ts=%" PRId64 " us flags=%x", Loading @@ -328,10 +329,6 @@ status_t FrameDecoder::extractInternal( if (flags & MediaCodec::BUFFER_FLAG_EOS) { haveMoreInputs = false; } // we don't expect an output from codec config buffer if (flags & MediaCodec::BUFFER_FLAG_CODECCONFIG) { continue; } } Loading