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

Commit 95838821 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "StagefrightRecorder: force 64-bit file-offsets for files > 4GB"

parents 6b23df9d d2bb2f98
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -70,6 +70,8 @@

namespace android {

static const int64_t kMax32BitFileSize = 0x00ffffffffLL; // 4GB

// To collect the encoder usage for the battery app
static void addBatteryData(uint32_t params) {
    sp<IBinder> binder =
@@ -475,6 +477,10 @@ status_t StagefrightRecorder::setParamMaxFileSizeBytes(int64_t bytes) {
    }

    mMaxFileSizeBytes = bytes;

    // If requested size is >4GB, force 64-bit offsets
    mUse64BitFileOffset |= (bytes >= kMax32BitFileSize);

    return OK;
}