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

Commit 911f7d1f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MPEG4Writer: Increase duration between out of order frames"

parents 118f33e5 a1ca8708
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ static const uint8_t kNalUnitTypeSeqParamSet = 0x07;
static const uint8_t kNalUnitTypePicParamSet = 0x08;
static const int64_t kInitialDelayTimeUs     = 700000LL;
static const int64_t kMaxMetadataSize = 0x4000000LL;   // 64MB max per-frame metadata size
static const int64_t kMaxCttsOffsetTimeUs = 30 * 60 * 1000000LL;  // 30 minutes

static const char kMetaKey_Version[]    = "com.android.version";
static const char kMetaKey_Manufacturer[]      = "com.android.manufacturer";
@@ -136,13 +137,6 @@ public:
    void resetInternal();

private:
    enum {
        // TODO: need to increase this considering the bug
        // about camera app not sending video frames continuously?
        kMaxCttsOffsetTimeUs = 1000000LL,  // 1 second
        kSampleArraySize = 1000,
    };

    // A helper class to handle faster write box with table entries
    template<class TYPE, unsigned ENTRY_SIZE>
    // ENTRY_SIZE: # of values in each entry
+0 −4
Original line number Diff line number Diff line
@@ -82,10 +82,6 @@ private:
        kWhatSwitch                          = 'swch',
    };

    enum {
        kMaxCttsOffsetTimeUs = 1000000LL,  // 1 second
    };

    int  mFd;
    int mNextFd;
    sp<MetaData> mStartMeta;