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

Commit 7b55c7ce authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Add read and write option in opening file for output in the writers"

parents 0ca007df 03f6f4e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ AMRWriter::AMRWriter(const char *filename)
      mPaused(false),
      mResumed(false) {

    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC);
    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR);
    if (mFd >= 0) {
        mInitCheck = OK;
    }
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ MPEG4Writer::MPEG4Writer(const char *filename)
      mEstimatedMoovBoxSize(0),
      mInterleaveDurationUs(1000000) {

    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC);
    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR);
    if (mFd >= 0) {
        mInitCheck = OK;
    }