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

Commit 308ca621 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Increase buffer size for video

Change-Id: I055e1336954387f7b48aa58d893a3a5fae036ece
parent 86355f5b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -222,8 +222,8 @@ status_t FragmentedMPEG4Source::start(MetaData *params) {

    mGroup = new MediaBufferGroup;

    int32_t max_size = 65536;
    // XXX CHECK(mFormat->findInt32(kKeyMaxInputSize, &max_size));
    // for video, make the buffer big enough for an extremely poorly compressed 1080p frame.
    int32_t max_size = mIsAudioTrack ? 65536 : 3110400;

    mGroup->add_buffer(new MediaBuffer(max_size));