Loading media/jni/android_media_MediaCodec.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -2895,6 +2895,10 @@ static void extractBufferFromContext( jint offset, jint size, std::shared_ptr<C2Buffer> *buffer) { if ((offset + size) > context->capacity()) { ALOGW("extractBufferFromContext: offset + size provided exceed capacity"); return; } *buffer = context->toC2Buffer(offset, size); if (*buffer == nullptr) { if (!context->mMemory) { Loading Loading
media/jni/android_media_MediaCodec.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -2895,6 +2895,10 @@ static void extractBufferFromContext( jint offset, jint size, std::shared_ptr<C2Buffer> *buffer) { if ((offset + size) > context->capacity()) { ALOGW("extractBufferFromContext: offset + size provided exceed capacity"); return; } *buffer = context->toC2Buffer(offset, size); if (*buffer == nullptr) { if (!context->mMemory) { Loading