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

Commit 8284de3b authored by Robert Shih's avatar Robert Shih
Browse files

MPEG4Writer: use "mp42" as major/minor brand in ftyp box.

Bug: 12783430
Change-Id: I7c8029de1db21fcac0ce3e4505661189535c45f1
parent 9be49c91
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -972,13 +972,16 @@ void MPEG4Writer::writeFtypBox(MetaData *param) {
    if (param && param->findInt32(kKeyFileType, &fileType) &&
        fileType != OUTPUT_FORMAT_MPEG_4) {
        writeFourcc("3gp4");
        writeInt32(0);
        writeFourcc("isom");
        writeFourcc("3gp4");
    } else {
        writeFourcc("mp42");
        writeInt32(0);
        writeFourcc("isom");
        writeFourcc("mp42");
    }

    writeInt32(0);
    writeFourcc("isom");
    writeFourcc("3gp4");
    endBox();
}