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

Commit e5bf3c1e authored by Leena Winterrowd's avatar Leena Winterrowd Committed by Linux Build Service Account
Browse files

stagefright: Fix HEVC flag initialization

In the case of audio-only tracks, the flag to indicate HEVC video
was uninitialized and often passed a video-only condition. Properly
initialize this flag to resolve the issue.

CRs-Fixed: 718466
Change-Id: I73dfd741f830664c444ff19c5969605c24cb52ad
parent 39e93781
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -362,7 +362,8 @@ MPEG4Writer::MPEG4Writer(const char *filename)
      mLongitudex10000(0),
      mLongitudex10000(0),
      mAreGeoTagsAvailable(false),
      mAreGeoTagsAvailable(false),
      mStartTimeOffsetMs(-1),
      mStartTimeOffsetMs(-1),
      mHFRRatio(1) {
      mHFRRatio(1),
      mIsVideoHEVC(false) {


    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
    mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
    if (mFd >= 0) {
    if (mFd >= 0) {
@@ -388,7 +389,8 @@ MPEG4Writer::MPEG4Writer(int fd)
      mLongitudex10000(0),
      mLongitudex10000(0),
      mAreGeoTagsAvailable(false),
      mAreGeoTagsAvailable(false),
      mStartTimeOffsetMs(-1),
      mStartTimeOffsetMs(-1),
      mHFRRatio(1) {
      mHFRRatio(1),
      mIsVideoHEVC(false) {
}
}


MPEG4Writer::~MPEG4Writer() {
MPEG4Writer::~MPEG4Writer() {