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

Commit 2308ec5e authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "MPEG4Writer:Fix MetaData use-after-free issue" am: e6b6db59

Change-Id: I9485f77b567543c5b3cec241ad8c7cccdaff1842
parents 956e2618 e6b6db59
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -614,7 +614,8 @@ status_t MPEG4Writer::addSource(const sp<MediaSource> &source) {
    CHECK(source.get() != NULL);

    const char *mime;
    source->getFormat()->findCString(kKeyMIMEType, &mime);
    sp<MetaData> meta = source->getFormat();
    meta->findCString(kKeyMIMEType, &mime);

    if (Track::getFourCCForMime(mime) == NULL) {
        ALOGE("Unsupported mime '%s'", mime);