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

Commit f9d5d465 authored by Harish Mahendrakar's avatar Harish Mahendrakar
Browse files

MPEG4Writer: Initialize mime to NULL in addSource

mime was uninitialized before querying from format.
If format doesn't contain mime, then this remained
uninitialized

Test: atest android.mediav2.cts.MuxerUnitTest
Bug: 148916777

Change-Id: I1375dd9e905fe8ee21f6cff9605db0e97114d0fa
parent e6b6db59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -613,7 +613,7 @@ status_t MPEG4Writer::addSource(const sp<MediaSource> &source) {

    CHECK(source.get() != NULL);

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